-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behavior of ignoring files/folders in .gitignore does not align with git #761
Comments
As a note, this rule seems to be explicitly stated on the
In this case, it "contains a /" and so will ignore
|
If i'm looking at it right, it seems like the
What causes this behaviour (and the issue with |
This commit makes handling of patterns containing a `/` match actual git behaviour and the specification written in `man gitignore`. Fixes #761
This issue originally arose when using VS Code's search feature which actually uses
ripgrep
. For specific details, you can see this issue:microsoft/vscode#42174
The issue seems to be,
ripgrep
is not ignoring the same files and folders asgit
. If this is intended behavior, it isn't really stated as the documentation simply states it will be "respecting your gitignore rules." Currently, if I have a structure as the following:If I also have a
.gitignore
which has the following entry:git
will only ignore./path1
in the Root of the project and not./path2/path1
.ripgrep
seems to be ignoring both./path1
and./path2/path1
which is inconsistent with whatgit
ignores when using these rules.The text was updated successfully, but these errors were encountered: