ripgrep icon indicating copy to clipboard operation
ripgrep copied to clipboard

--ignore-dot does not ignore .rgignore

Open BurntSushi opened this issue 3 years ago • 0 comments

Discussed in https://github.com/BurntSushi/ripgrep/discussions/2197

Originally posted by balazser April 29, 2022 Why --ignore-dot switch ignores .ignore but not .rgignore? Although if .rgignore file presents in the parent dictionary it can be ignored with --ignore-parent.

Here is a test case:

$ mkcd /tmp/rg-2197
$ touch a b c
$ echo a > .ignore
$ echo b > .rgignore
$ rg --files
c
$ rg --files --no-ignore-dot
c
a

BurntSushi avatar Apr 29 '22 16:04 BurntSushi