Skip to content

feat(sync): add --all flag to sync full stack#82

Merged
javoire merged 1 commit into
mainfrom
jd/sync-current-branch
May 20, 2026
Merged

feat(sync): add --all flag to sync full stack#82
javoire merged 1 commit into
mainfrom
jd/sync-current-branch

Conversation

@javoire
Copy link
Copy Markdown
Owner

@javoire javoire commented May 20, 2026

Summary

  • Add --all flag to stack sync that syncs the entire stack, not just the ancestor chain up to the current branch
  • Default behavior unchanged: stack sync still processes base → current branch
  • stack sync --all finds the root of the stack and includes all descendants, so children below the current branch get rebased and pushed too
  • New GetDescendants function in stack package (BFS through children map)

🤖 Generated with Claude Code

Default `stack sync` only processes the ancestor chain from base to
current branch. `--all` finds the stack root and syncs every branch
in the stack via BFS, so children below the current branch are
included.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@javoire javoire marked this pull request as ready for review May 20, 2026 22:40
@javoire javoire merged commit 0cdede2 into main May 20, 2026
1 check passed
@javoire javoire deleted the jd/sync-current-branch branch May 20, 2026 22:55
javoire pushed a commit that referenced this pull request May 20, 2026
…026-05-20)

### Features

* **sync:** add --all flag to sync full stack including descendants ([#82](#82)) ([0cdede2](0cdede2))
@javoire
Copy link
Copy Markdown
Owner Author

javoire commented May 20, 2026

🎉 This PR is included in version 1.24.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant