Skip to content

Commit

Permalink
fileset: add docs for aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceberger committed Nov 28, 2024
1 parent 7dfe791 commit 91f6e9d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/filesets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 91f6e9d

Please sign in to comment.