Skip to content

Why --ignore-dot does not ignore .rgignore? #2197

Answered by BurntSushi
balazser asked this question in General
Discussion options

You must be logged in to vote

It's usually good to provide a test case so that we're all on the same page. Here's one:

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

So I suppose the question here is, "why is b still ignored?"

Good question. Looks like it might be a bug.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BurntSushi
Comment options

@balazser
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants