Skip to content

feat: add --no-ignore-vcs-exclude / --ignore-vcs-exclude - #2103

Open
patnr wants to merge 2 commits into
sharkdp:masterfrom
patnr:no-ignore-vsc-exclude
Open

feat: add --no-ignore-vcs-exclude / --ignore-vcs-exclude#2103
patnr wants to merge 2 commits into
sharkdp:masterfrom
patnr:no-ignore-vsc-exclude

Conversation

@patnr

@patnr patnr commented Aug 26, 2026

Copy link
Copy Markdown

Closes #1612. Supersedes #1652 — this takes @AckslD's original commit (rebased onto current master) and completes the review feedback from that PR.

Adds --no-ignore-vcs-exclude, which shows results that would otherwise be ignored by .git/info/exclude while still respecting .gitignore and other ignore files. The motivation (from #1612) is that these two kinds of ignore files tend to serve different purposes: .gitignore is committed and typically lists generated or automatic files that nobody wants to see, while .git/info/exclude is often used for personal files that you actively use and do want to find — you just don't want to commit them or impose them on the repo. This flag lets you keep those personal files visible in searches without giving up gitignore filtering entirely. --ignore-vcs-exclude overrides it, following the existing flag-pair convention.

On top of the original commit: integration tests (including interaction with --no-ignore-vcs, --no-ignore, and -u, plus an override-pair case), CHANGELOG entry, man page entry, zsh completion entry, and two typo fixes in the flag's long help.

AI disclosure (per the contributing guide): the follow-up commit (tests, docs, changelog, typo fixes) was written with an AI coding assistant (Claude Code) under my direction, and I have reviewed the changes. The original feature commit is human-written by @AckslD.

🤖 Generated with Claude Code

AckslD and others added 2 commits August 26, 2026 14:23
Completes PR sharkdp#1652 as requested in review: adds integration tests
(including interaction with --no-ignore-vcs, --no-ignore and -u),
a CHANGELOG entry, the man page entry, the zsh completion entry,
and fixes two typos in the --no-ignore-vcs-exclude long help.

This commit was written with an AI coding assistant (Claude Code).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

Only ignore .git/info/exclude

2 participants