Repository navigation
local review: correct the README and the dirty-tree warning - #744
Merged
Merged
Conversation
Sashiko reviewCommit 1/1 —
|
The README states that local review applies the patches in a temporary scratch clone. run_git_review runs the worker with current_tree set, so nothing is cloned or applied: the review reads files through git, with HEAD standing for the commit under review, and leaves the working tree alone. Describe what the review does instead. Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
sashiko review warns on a dirty working directory that the reviewer might see the uncommitted changes. It doesn't: the review reads files through git, with HEAD standing for the commit under review, and the prefetch has read the target commit rather than the working files since e059a45 ("prefetch: read review context from the target commit"). Keep the warning and the prompt, since someone who meant to review uncommitted work can still stop and commit it, and make the warning state that the uncommitted changes are not reviewed. Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
ftabba
force-pushed
the
pr/readme-current-tree
branch
from
October 25, 2026 16:28
c2255db to
06c33b3
Compare
Contributor
Author
|
I wrote that the review reads the checked-out tree, but it reads files through git, with HEAD standing for the commit under review. Fixed in the new head, which also corrects the dirty-tree warning: it stated that the review might see uncommitted changes. |
Sashiko review — v2✓ No issues found across 2 commits. |
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 messages misstate what a local review reads. The README states that it applies the patches in a temporary scratch clone, and the warning on a dirty working directory states that the reviewer might see the uncommitted changes. Neither happens:
run_git_reviewruns the worker withcurrent_treeset, so nothing is cloned or applied, and the review reads files through git, withHEADstanding for the commit under review.The first commit corrects the README. The second keeps the warning and its prompt, and makes the warning state that uncommitted changes aren't reviewed.