You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I exclude a file privately in .git/info/exclude, ripgrep ignores that file as expected - but only when searching inside the main worktree. In linked worktrees, the file is not ignored.
If this is a bug, what are the steps to reproduce the behavior?
Git looks for this file in GIT_COMMON_DIR, which is usually the same
as GIT_DIR (.git). However, when searching inside a linked worktree,
.git is usually a file that contains the path of the actual git dir,
which in turn contains a file "commondir" which references the directory
where info/exclude may reside, alongside other configuration shared across
all worktrees. This directory is usually the git dir of the main worktree.
Unlike git this does *not* read environment variables GIT_DIR and
GIT_COMMON_DIR, because it is not clear how to interpret them when
searching multiple repositories.
FixesBurntSushi#1445
Git looks for this file in GIT_COMMON_DIR, which is usually the same
as GIT_DIR (.git). However, when searching inside a linked worktree,
.git is usually a file that contains the path of the actual git dir,
which in turn contains a file "commondir" which references the directory
where info/exclude may reside, alongside other configuration shared across
all worktrees. This directory is usually the git dir of the main worktree.
Unlike git this does *not* read environment variables GIT_DIR and
GIT_COMMON_DIR, because it is not clear how to interpret them when
searching multiple repositories.
Fixes#1445, Closes#1446
What version of ripgrep are you using?
ripgrep 11.0.2 (same in master I think)
How did you install ripgrep?
https://www.archlinux.org/packages/community/x86_64/ripgrep/
What operating system are you using ripgrep on?
Arch Linux
Describe your question, feature request, or bug.
If I exclude a file privately in
.git/info/exclude
, ripgrep ignores that file as expected - but only when searching inside the main worktree. In linked worktrees, the file is not ignored.If this is a bug, what are the steps to reproduce the behavior?
If this is a bug, what is the actual behavior?
If this is a bug, what is the expected behavior?
I think it should behave like
git ls-files; git ls-files --exclude-standard --others
:The text was updated successfully, but these errors were encountered: