fileset: add docs for aliases

This commit is contained in:
Bryce Berger 2024-11-28 12:09:43 -05:00
parent 478047b72f
commit 3eebae12aa
No known key found for this signature in database
GPG key ID: 58CA4F9FEF8F4296

View file

@ -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`.