From f0faa91c68c0d2f8c4b93a5e8546b4d3554f637e Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Fri, 10 Oct 2025 21:44:50 -0400 Subject: [PATCH] doc: clarify `--ignore-file` precedence Fixes #2777 --- crates/core/flags/defs.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs index 65e74c54..5ce91086 100644 --- a/crates/core/flags/defs.rs +++ b/crates/core/flags/defs.rs @@ -3229,9 +3229,11 @@ impl Flag for IgnoreFile { Specifies a path to one or more \fBgitignore\fP formatted rules files. These patterns are applied after the patterns found in \fB.gitignore\fP, \fB.rgignore\fP and \fB.ignore\fP are applied and are matched relative to the -current working directory. Multiple additional ignore files can be specified -by using this flag repeatedly. When specifying multiple ignore files, earlier -files have lower precedence than later files. +current working directory. That is, files specified via this flag have lower +precedence than files automatically found in the directory tree. Multiple +additional ignore files can be specified by using this flag repeatedly. When +specifying multiple ignore files, earlier files have lower precedence than +later files. .sp If you are looking for a way to include or exclude files and directories directly on the command line, then use \flag{glob} instead.