-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add switch to pay attention to .gitignore files when not in a git repo #1414
Copy link
Copy link
Closed
Labels
enhancementAn enhancement to the functionality of the software.An enhancement to the functionality of the software.help wantedOthers are encouraged to work on this issue.Others are encouraged to work on this issue.questionAn issue that is lacking clarity on one or more points.An issue that is lacking clarity on one or more points.
Description
Could you add a switch e.g. --force-gitignore which would force usage of .gitignore files even when there's no .git directory?
Give a large repo, it's often convenient to archive versions of it and not save the .git directory. Currently ripgrep 11.0.2 does not pay attention to .gitignore files if there's no .git directory. This makes it impossible to use rg on such repo's. Another use case is when using Perforce. Perforce pays attention to .gitignore files and does not have a .git directory. A work around is to create an empty .git directory, but in our environment this causes problems because git based tools fail when there's an empty .git directory.
Thanks for ripgrep - it's really powerful!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementAn enhancement to the functionality of the software.An enhancement to the functionality of the software.help wantedOthers are encouraged to work on this issue.Others are encouraged to work on this issue.questionAn issue that is lacking clarity on one or more points.An issue that is lacking clarity on one or more points.