Repository navigation
fix(#16440): no path commit beside a pick in a rebase stop - #16652
Conversation
A rebase stop allows `git commit -- <paths>`, but Git refuses it when
`CHERRY_PICK_HEAD` exists beside the rebase state ("during a rebase" when
it equals `REBASE_HEAD`, "during a cherry-pick" otherwise). The marker
classifier treated every rebase state as no operation, so check, pilot,
the editor and agent status printed a commit Git refuses, for example
after a conflicted `git cherry-pick` at an edit stop.
`operation_from_markers` now also reads `REBASE_HEAD` and compares the
two heads under a rebase state: equal is a rebase pick, different is a
cherry-pick, and an unreadable head fails closed. Plain edit and
conflict stops keep the commit step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzTog4paRbkjGfRRp4y
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 44 minutes. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact head reviewed: 5da60a9.
An independent subagent reviewed the full diff. It checked:
- Git 2.43 behavior in scratch repositories: rebase-merge edit and conflict stops, a cherry-pick at an edit stop (including in a linked worktree),
rebase --applyandgit am -3conflicts, equal heads under both rebase-apply and rebase-merge,rebase -rmerge conflicts, and a revert at an edit stop. - That all consumers go through
path_commit_operation/path_commit_hazards: check, pilot, the LSP actions and agent status. - Whether the tests discriminate. They fail on the old classifier, and the fixture asserts its preconditions and Git's real refusal.
- Docs, schema and changelog parity.
It found no blocking issues. The minor notes were:
- Comment wording at
edit_cage/mod.rs:886. - A
rebase -rmerge case covered only by a unit test. - A pre-existing gap for the reftable ref backend, now filed as #16653.
Local runs on this head:
- clippy for the lib and tests is clean.
check_repair_agreepasses 70 tests.
Lib unit tests are left to hosted CI.
Generated by Claude Code
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Hosted evidence for the lib-unit item left open in the exact-head review: Rust Small Result job 141532461360 passed. I verified the SHA-256 of the aggregate JUnit artifact 15334033104 and both shard archives. The checkout |
🤖 Generated with Claude Code
https://claude.ai/code/session_01YVdGzTog4paRbkjGfRRp4y
Governing issue or accepted claim: #16440
Acceptance delta (one sentence): check, pilot, the editor and agent status no longer print a
git commit -- <paths>step that Git refuses whenCHERRY_PICK_HEADexists beside a rebase stop.Summary
At a rebase stop,
git commit -- <paths>works. Git 2.43 refuses it whenCHERRY_PICK_HEADsits beside the rebase state. If it equalsREBASE_HEAD, Git says "during a rebase"; otherwise it says "during a cherry-pick". The marker classifier treated every rebase state as no operation. So after a conflictedgit cherry-pickat an edit stop, every surface printed a commit Git refuses.path_commit_operationnow also asks forREBASE_HEADand follows Git's own order:MERGE_HEADis a merge.CHERRY_PICK_HEADis a rebase pick when rebase-merge state exists and the heads are equal, and a cherry-pick otherwise.Proof
operation_markers_decide_the_path_commit_operationcovers:REBASE_HEAD;a_merge_cherry_pick_or_revert_in_progress_prints_no_path_commituses a real cherry-pick during a rebase edit stop, plus a rebase pick. It asserts that:path_commit_unsafe;cargo clippy -p ripr --lib --tests -- -D warningsis clean.check_repair_agree(68 tests) andlsp_lifecycle(81 tests) pass.cargo xtask precommitexited 0 on the pre-rebase head.Source review: REVIEW_READY 5da60a9
Generated by Claude Code