Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up`-prune` options #535
`-prune` options #535
Comments
|
Thank you for your feedback. Can you please give us some examples of actual (non-hypothetical) use cases for this? |
|
@sharkdp Yes of course :) I don't want to display a directory if one of the parent directory has matched the search :) With the find tool, I can use the option |
|
Ok, let's try to implement this as a new flag. We can hide it from the short |
|
Hello. I'd like to take this if its available? |
|
Clarification on behavior: is prune meant to be a flag to operate on <pattern>?
|
|
Yes :) it should work like this (the tool should stop to explore sub-directories when the current directories has matched) |
- Added --prune option which will not descend into directories that are a match on pattern. - Added test to cover --prune option.
|
I'm happy to see that this is in the works! |


Is it possible to add an option
-prune, to not explore sub-directories, when the current directory has been matched ? (likefind -prune)