summaryrefslogtreecommitdiffstats
path: root/src/args.rs
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 /src/args.rs
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 'src/args.rs')
-rw-r--r--src/args.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs
index 2343102e..6e79cb0a 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -663,6 +663,7 @@ impl ArgMatches {
.follow_links(self.is_present("follow"))
.max_filesize(self.max_file_size()?)
.threads(self.threads()?)
+ .same_file_system(self.is_present("one-file-system"))
.overrides(self.overrides()?)
.types(self.types()?)
.hidden(!self.hidden())