Repository navigation
fix(list): deduplicate concurrent ahead/behind counts - #4663
Merged
Merged
Conversation
worktrunk-bot
commented
Nov 2, 2026
worktrunk-bot
left a comment
Collaborator
Author
There was a problem hiding this comment.
The regression test can pass without exercising the count it intends to deduplicate.
1 task
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.
Two statusline tasks can request the same ahead/behind SHA pair concurrently when local
maintrailsorigin/main. Each previously missed the persistent cache and launched its owngit rev-list --count. A per-repository, per-pair in-memory cache now holds the first computation while the other caller waits; the persistent cache still serves later processes.The new statusline regression test reproduced two matching
rev-listcalls before the change and passes with at most one after it.cargo test --lib test_ahead_behind_reads_cache, the focused integration test, andcargo fmt --checkpass.Closes #4662 — automated triage