Skip to content

Commit

Permalink
docs: update stale references to singular file() revset
Browse files Browse the repository at this point in the history
  • Loading branch information
TheodoreEhrenborg authored and PhilipMetzger committed Oct 3, 2024
1 parent f23d40c commit 3d26af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/revsets.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ given [string pattern](#string-patterns).
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`.
For example, `files(foo)` will match files `foo`, `foo/bar`, `foo/bar/baz`.
It will *not* match `foobar` or `bar/foo`.

Some file patterns might need quoting because the `expression` must also be
parsable as a revset. For example, `.` has to be quoted in `file(".")`.
parsable as a revset. For example, `.` has to be quoted in `files(".")`.

* `diff_contains(text[, files])`: Commits containing diffs matching the given
`text` pattern line by line.
Expand Down

0 comments on commit 3d26af8

Please sign in to comment.