3 ms·
If you use the `--debug` flag, it will tell you which files are being ignored and why. If ripgrep doesn't search any files at all, then it should print a warni
by burntsushi 8y ago
If you use the `--debug` flag, it will tell you which files are being ignored and why.
If ripgrep doesn't search any files at all, then it should print a warning to stdout.
ripgrep ascends your directory hierarchy for .gitignore files because that's how git works; .gitignore files in parent directories apply. ripgrep doesn't know anything about Mercurial, so it doesn't know to stop ascending your directories.
ack is different since it doesn't look at your .gitignore files, so it doesn't have the same behavior here.
- linsomniac 8y agoOooh, ack ignores ".git" and ".hg", but ignores the ignore files. That, actually, seem like pretty ideal functionality. I guess the equivalent would be "rg --no-ignore-vcs". I had tried "-vvv" to no avail, thanks for the pointer about "--debug".