Skip to content

index: preserve matched branches in filename-only searches - #1298

Closed
keegancsmith wants to merge 1 commit into
mainfrom
k/land-1297
Closed

keegancsmith wants to merge 1 commit into
mainfrom
k/land-1297

Conversation

@keegancsmith

Copy link
Copy Markdown
Member

This lands #1297 by Perfloop Agent, rebased onto main. That PR conflicts with #1286 and its org fork doesn't allow maintainer edits, so it couldn't be updated in place. The only change from #1297 is the conflict resolution in scoreFile: it uses the new visitMatches(..., false, ...) walk and keeps #1286's repository filter skip inside the callback.

Closes #1297

Filename-only searches pointed multi-branch file results at the wrong
commit: branch selection never looked inside filename-only wrappers, so
"type:file branch:dev hello" reported every branch containing the file and
main's version. Branch selection now visits matched atoms inside those
wrappers, while fragment gathering and atom scoring still skip them, so
filename-only output and scores are unchanged.

Rebased onto main by Keegan, resolving the conflict with #1286 in scoreFile:
the repository filter skip stays inside the new visitMatches callback.

Signed-off-by: Perfloop Agent <agent@perfloop.ai>
Amp-Thread-ID: https://ampcode.com/threads/T-7c2bc33e-daf9-48df-a100-0f046a1de3a6
Co-authored-by: Amp <amp@ampcode.com>
@keegancsmith
keegancsmith deleted the k/land-1297 branch November 26, 2026 14:38
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.

2 participants