Repository navigation
index: preserve matched branches in filename-only searches - #1298
Closed
keegancsmith wants to merge 1 commit into
Closed
keegancsmith wants to merge 1 commit into
keegancsmith wants to merge 1 commit into
Conversation
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>
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.
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 newvisitMatches(..., false, ...)walk and keeps #1286's repository filter skip inside the callback.Closes #1297