4 ms·
> Ignores patterns from your .gitignore, by default. Do you need to be in the current git directory for this to happen, or all git dirs that happen to be trave
by smegel 9y ago
> Ignores patterns from your .gitignore, by default.
Do you need to be in the current git directory for this to happen, or all git dirs that happen to be traversed?
And are you using an NFA based regex engine?
- sharkdp 9y agoIt will work for all git directories that are encountered. This behavior can be disabled with the '-I' flag, if needed. fd uses Rusts regex engine (https://github.com/rust-lang/regex https://github.com/rust-lang/regex) which is based on finite automata.
- JepZ 9y agoI am not sure if I find that a smart default as I frequently exclude generated files from git repositories and when want to find something I do not know why I would not like to find such a file if my pattern matches it. I would prefer to let the switch enable the .gitignore logic, but as I don't know the authors use-case, theirs might be valid too.
- Sean1708 9y agoSurely the common case is that you don't want to search generated files? Or at least I personally am almost never interested in generated files because they're not the ones I'm going to be changing/doing stuff with.