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
This behavior is also exhibited by rigprep (with rg --files --hidden), so this is probably a bug in the upstream ignore project. You should probably file it on the ripgrep project.
From some experimentation, I've found that this seems to only happen when you have a pattern with path components.
Here is a minimal reproduction:
$ cat .ignore
**/test/dir/
$ tree
.
└── myfolder
├── dat
└── test
└── dir
└── a
4 directories, 2 files
$ fd
myfolder/
myfolder/dat
myfolder/test/
$ cd myfolder
$ fd
dat
test/
test/dir/
test/dir/a
$ rg --files
dat
test/dir/a
Checks
Describe the bug you encountered:
Given this directory:
and the following .gitignore:
When calling 'fd --hidden' from inside 'myfolder', I get all the files in the ignored folders listed.
It behaves correctly if the cwd is:
Describe what you expected to happen:
'fd' respecting the parent .gitignore
What version of
fd
are you using?fd 10.1.0
Which operating system / distribution are you on?
The text was updated successfully, but these errors were encountered: