From 91f6e9d3ac0a8c26d08d7be9d1545830bf9bb189 Mon Sep 17 00:00:00 2001 From: Bryce Berger Date: Thu, 28 Nov 2024 12:09:43 -0500 Subject: [PATCH] fileset: add docs for aliases --- docs/filesets.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/filesets.md b/docs/filesets.md index ec46a7c838..86999acd5a 100644 --- a/docs/filesets.md +++ b/docs/filesets.md @@ -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`.