Skip to content

stck sync doesn't detect local branch divergence #44

@Reinand

Description

@Reinand

Problem

After pushing a new commit to an early branch in a stack, stck sync reports "Stack is already up to date. No sync needed." even though all downstream branches need rebasing.

Steps to reproduce

  1. Have a 6-branch stack: main <- A <- B <- C <- D <- E <- F
  2. Checkout branch A, make a change, commit, push
  3. Run stck sync (from any branch in the stack)
  4. Result: "Stack is already up to date"
  5. Expected: downstream branches B-F should be rebased onto the new A

Context

It seems sync only compares against remote state rather than checking if local parent branch tips have moved. This is the primary use case for sync — fix something on an early branch and cascade the change down the stack.

We had to manually git checkout <branch> && git rebase <parent> for each of the 5 downstream branches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions