summaryrefslogtreecommitdiffstats
path: root/crates/core/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/app.rs')
-rw-r--r--crates/core/app.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/core/app.rs b/crates/core/app.rs
index 41128c5f..0e799d08 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -1358,6 +1358,13 @@ used. Globbing rules match .gitignore globs. Precede a glob with a ! to exclude
it. If multiple globs match a file or directory, the glob given later in the
command line takes precedence.
+As an extension, globs support specifying alternatives: *-g ab{c,d}* is
+equivalet to *-g abc -g abd*. Empty alternatives like *-g ab{,c}* are not
+currently supported. Note that this syntax extension is also currently enabled
+in gitignore files, even though this syntax isn't supported by git itself.
+ripgrep may disable this syntax extension in gitignore files, but it will
+always remain available via the -g/--glob flag.
+
When this flag is set, every file and directory is applied to it to test for
a match. So for example, if you only want to search in a particular directory
'foo', then *-g foo* is incorrect because 'foo/bar' does not match the glob