You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --hidden and .ignore file combination is not working well for ignored files inside hidden directories e.g. a .a/b/c file shouldn't appear if .ignore contains .a/b.
If this is a bug, what are the steps to reproduce the behavior?
The same files shown by git status (after a git init && git add .):
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .a/c/file
new file: .gitignore
new file: .ignore
As you can see, the .a/b/file was ommited by Git, but not by ripgrep.
The text was updated successfully, but these errors were encountered:
FYI, the problem doesn't occur if you do rg --files --hidden or rg --files --hidden $PWD or even rg --files --hidden ./ — you explicitly need to use . for the path
What version of ripgrep are you using?
ripgrep 0.8.0
-SIMD -AVX
What operating system are you using ripgrep on?
Arch Linux
Describe your question, feature request, or bug.
The
--hidden
and.ignore
file combination is not working well for ignored files inside hidden directories e.g. a.a/b/c
file shouldn't appear if.ignore
contains.a/b
.If this is a bug, what are the steps to reproduce the behavior?
If this is a bug, what is the actual behavior?
This is the current output:
If this is a bug, what is the expected behavior?
The same files shown by
git status
(after agit init && git add .
):As you can see, the
.a/b/file
was ommited by Git, but not by ripgrep.The text was updated successfully, but these errors were encountered: