summaryrefslogtreecommitdiffstats
path: root/src/app.rs
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-07-22 11:05:24 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-07-22 11:05:24 -0400
commit22ac2e056e1826957dddfaac6e45dadc4414bbe1 (patch)
treee6044498917a89b8fea023df2609f2d4329906fc /src/app.rs
parent03af61fc7bb384cb594359fee806912ee5e57a98 (diff)
ripgrep: stop early when --files --quiet is used
This commit tweaks the implementation of the --files flag to stop early when --quiet is provided. Fixes #907
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app.rs b/src/app.rs
index 4bdf5bf4..24851c3b 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -1402,6 +1402,9 @@ fn flag_quiet(args: &mut Vec<RGArg>) {
Do not print anything to stdout. If a match is found in a file, then ripgrep
will stop searching. This is useful when ripgrep is used only for its exit
code (which will be an error if no matches are found).
+
+When --files is used, then ripgrep will stop finding files after finding the
+first file that matches all ignore rules.
");
let arg = RGArg::switch("quiet").short("q")
.help(SHORT).long_help(LONG);