ok/jj
1
0
Fork 0
forked from mirrors/jj

docs: clarify that file() revsets match recursively

This commit is contained in:
Martin von Zweigbergk 2023-04-25 10:25:46 -07:00 committed by Martin von Zweigbergk
parent 67d07751a5
commit 1d5edddef7

View file

@ -119,7 +119,10 @@ revsets (expressions) as arguments.
* `empty()`: Commits modifying no files. This also includes `merges()` without
user modifications and `root`.
* `file(pattern..)`: Commits modifying the paths specified by the `pattern..`.
Paths are relative to the directory `jj` was invoked from.
Paths are relative to the directory `jj` was invoked from. A directory name
will match all files in that directory and its subdirectories. For example,
`file(foo)` will match files `foo`, `foo/bar`, `foo/bar/baz`, but not file
`foobar`.
* `conflict()`: Commits with conflicts.
* `present(x)`: Same as `x`, but evaluated to `none()` if any of the commits
in `x` doesn't exist (e.g. is an unknown branch name.)