Skip to content

feat(cli): ignore .git directory by default #1300

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

risu729
Copy link

@risu729 risu729 commented May 18, 2025

Fixes #788.

Since the ignore crate doesn't support this directly, I added an overrides option to explicitly ignore the .git directory.
ref: BurntSushi/ripgrep#2964

If it's preferable to set a default extend_exclude and merge it instead, I'm happy to refactor accordingly.

Apologies for the lack of tests and documentation.
I couldn't include tests because the .git directory is ignored by Git itself.
As for documentation, I wasn't sure where this should be documented. Could you advise me on the appropriate place to add it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checking all files in git index
1 participant