summaryrefslogtreecommitdiffstats
path: root/complete
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-08-25 21:08:42 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-08-26 18:42:25 -0400
commitf9ce7a84a8ce1be033099ee4785815bc5f269223 (patch)
tree9197345c31f06b2f1757c758b307b2f7372b7708 /complete
parent1b6089674e38aa0fde9810b4d25d79119f1c2400 (diff)
ignore: add 'same_file_system' option
This commit adds a 'same_file_system' option to the walk builder. For single threaded walking, it defers to the walkdir crate, which has the same option. The bulk of this commit implements this flag for the parallel walker. We add one very feeble test for this. The parallel walker is now officially a complete mess. Closes #321
Diffstat (limited to 'complete')
-rw-r--r--complete/_rg4
1 files changed, 4 insertions, 0 deletions
diff --git a/complete/_rg b/complete/_rg
index fcb5bbf9..77f8394c 100644
--- a/complete/_rg
+++ b/complete/_rg
@@ -81,6 +81,10 @@ _rg() {
{-H,--with-filename}'[show file name for matches]'
"--no-filename[don't show file name for matches]"
+ + '(file-system)' # File system options
+ "--one-file-system[don't descend into directories on other file systems]"
+ $no'--no-one-file-system[descend into directories on other file systems]'
+
+ '(fixed)' # Fixed-string options
{-F,--fixed-strings}'[treat pattern as literal string instead of regular expression]'
$no"--no-fixed-strings[don't treat pattern as literal string]"