mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-12 07:24:11 +00:00
Naming convention is described in FilePattern::from_str_kind(). It's based on Mercurial's pattern prefixes, but hopefully fixes some inconsistencies. https://github.com/martinvonz/jj/issues/2915#issuecomment-1956401114 #3239
21 lines
799 B
Markdown
21 lines
799 B
Markdown
# Filesets
|
|
|
|
<!--
|
|
TODO: implement fileset parser and add logical operators
|
|
|
|
Jujutsu supports a functional language for selecting a set of files.
|
|
Expressions in this language are called "filesets" (the idea comes from
|
|
[Mercurial](https://repo.mercurial-scm.org/hg/help/filesets)). The language
|
|
consists of symbols, operators, and functions.
|
|
-->
|
|
|
|
## File patterns
|
|
|
|
The following patterns are supported:
|
|
|
|
* `"path"`, `path` (the quotes are optional), or `cwd:"path"`: Matches
|
|
cwd-relative path prefix (file or files under directory recursively.)
|
|
* `cwd-file:"path"` or `file:"path"`: Matches cwd-relative file (or exact) path.
|
|
* `root:"path"`: Matches workspace-relative path prefix (file or files under
|
|
directory recursively.)
|
|
* `root-file:"path"`: Matches workspace-relative file (or exact) path.
|