gunk-dev/the-valley
the-valley:bd-f589ce4bugclosed

A person who rebases a change with plain git ends with two changes, and learns of a stale base only when the restack conflicts

State
done
Created
2026-11-21 by contributor
Changes
  • valley:the-valley/wvvzlvlrxlmltxpkvnmqwxntukospkwn

Body

Seen with a person working by hand. They committed on a local main two landings behind origin's, pushed the commit to a branch and ran `valley ready`. The restack conflicted, because main had changed the same file. They fixed it with `git rebase origin/main`, force-pushed, and ran `valley ready` again: a new change was made, and the conflicted one stayed held until withdrawn by hand.

Two gaps in `valley ready`:

1. A branch that already has a change gets a second one. The change id is taken from --change, the commit's change-id header, or a Change-Id trailer; a commit made and rebased with plain git carries neither, so ready generates a new id although origin already records a change on that same branch.
2. Nothing says the base is behind. At ready time it is knowable that the head's merge base is behind origin/main and that main has since changed a path the change touches, which is the case a restack will conflict on.

Comments

  1. contributor2026-11-21 18:24 UTC
    Change valley:the-valley/wvvzlvlrxlmltxpkvnmqwxntukospkwn landed: v1 as b919222bf28d99193b9c9112717173a01d6a3565.
    
    Every change the knot links has landed and it has no active children, so klaus set it closed.