mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-12 07:14:38 +00:00
fileset: add docs for aliases
This commit is contained in:
parent
478047b72f
commit
3eebae12aa
1 changed files with 14 additions and 0 deletions
|
@ -61,6 +61,20 @@ You can also specify patterns by using functions.
|
|||
* `all()`: Matches everything.
|
||||
* `none()`: Matches nothing.
|
||||
|
||||
## Aliases
|
||||
|
||||
New symbols can be defined in the config file, using predefined symbols/
|
||||
functions and other aliases.
|
||||
|
||||
Unlike revsets, aliases currently cannot be functions.
|
||||
|
||||
For example:
|
||||
```toml
|
||||
[fileset-aliases]
|
||||
LIB = "root-glob:lib/**"
|
||||
NO_LOCK = "~root-glob:**/*.lock"
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
Show diff excluding `Cargo.lock`.
|
||||
|
|
Loading…
Reference in a new issue