Skip to content

fix: honor info/exclude in linked worktrees#2930

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/worktree-info-exclude-2876
Open

fix: honor info/exclude in linked worktrees#2930
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/worktree-info-exclude-2876

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Discover the gix repository from the worktree workdir instead of gitpath() alone.
  • Linked worktrees use a .git file; discovering from "." or the git dir path could skip .git/info/exclude rules that apply in the main worktree.

Fixes #2876

Test plan

  • In a repo with a linked worktree, add a pattern to .git/info/exclude
  • Confirm ignored files are hidden in the linked worktree status view (same as main worktree)

Made with Cursor

Linked worktrees use a .git file; discovering from gitpath alone can
miss .git/info/exclude. Discover from the repository workdir instead.

Fixes gitui-org#2876

Co-authored-by: Cursor <cursoragent@cursor.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.

In non main worktree git/info/exlude is ignored.

1 participant