Skip to content

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

Open
risu729 wants to merge 1 commit intocrate-ci:masterfrom
risu729:feat/ignore-git
Open

feat(cli): ignore .git directory by default#1300
risu729 wants to merge 1 commit intocrate-ci:masterfrom
risu729:feat/ignore-git

Conversation

@risu729
Copy link
Copy Markdown

@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