Re:Ripgrep 11 Released
by linsomniac on Tuesday April 16, 2019 @04:04PM
(#19676802)
Oooh, 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".
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.