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
which means: ignore every directory in the root of the repository except the dir directory. Git understands this, but rg will fail to find results in /dir. Note that pt handles this correctly.
The text was updated successfully, but these errors were encountered:
Thanks for the report! This wasn't actually a bug with overlapping patterns or anything. There was a bug in the gitignore parser that was triggered by the whitelist that was preventing /dir from being interpreted as an anchored path.
There was a bug in the translation from a gitignore pattern to a standard
glob where `!/dir` wasn't being interpreted as an absolute path.
FixesBurntSushi#67.
Git allows the following in a
.gitignore
:which means: ignore every directory in the root of the repository except the
dir
directory. Git understands this, butrg
will fail to find results in/dir
. Note thatpt
handles this correctly.The text was updated successfully, but these errors were encountered: