Repository navigation
Conversation
The walker read only .gitignore and .sembleignore, so paths excluded via .git/info/exclude (for example nested worktrees under .claude/worktrees/) were indexed and returned as duplicate hits. Read the root repo's info/exclude, following a worktree's .git file to the common git dir. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #329.
semble reads
.gitignoreand.sembleignorebut not.git/info/exclude, which git also honors. Tools such as Claude Code list nested worktrees (.claude/worktrees/) only ininfo/exclude, so searching a repo's main checkout returned duplicate hits from every worktree copy: in one real repo, 5 of the top 8 results.This change reads
info/excludefor the search root and applies it before the root.gitignore, the same order git uses. In a worktree,.gitis a file, so it followsgitdir:andcommondirto the shared git folder. It does not call the git binary. A search started inside a worktree still returns that worktree's files.Tests cover a normal repo, a worktree
.gitfile and no.git; they fail without the change.make lint,make typecheckandmake testpass (401 tests, coverage 100%).🤖 Generated with Claude Code