Skip to content

feat(handoff): add --base to stack a desk branch on a parent branch - #24

Merged
simoncrypta merged 1 commit into
masterfrom
handoff-base
Nov 1, 2026
Merged

simoncrypta merged 1 commit into
masterfrom
handoff-base

Conversation

@simoncrypta

@simoncrypta simoncrypta commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

What

handoff-spawn --branch <name> ... --base <branch> cuts the new desk branch from <branch> instead of the default branch (wt switch --create --base). When Graphite is set up for the repo, the new branch is tracked with <branch> as its parent instead of trunk. --base without --branch is rejected, because headless stages run in an existing --worktree.

Also documents the flag in skills/handoff/SKILL.md and the script's usage text.

Why

Dependent issues need to stack on their parent's branch before the parent merges. Until now handoff-spawn could only cut desk branches from master, so a follow-up issue had to wait for its parent's PR to land (this is how the bercail-1lk desk was started on top of #23's branch).

Tests

  • tests/handoff_spawn_test.sh: new cases: with --base, gt tracks the new branch on that base; --base without --branch is refused and the flag is in --help. 33 PASS.
  • Full suite for t in tests/*.sh; do bash "$t"; done: all 23 files pass after rebasing onto master (c6424de).

@simoncrypta
simoncrypta merged commit 24d09eb into master Nov 1, 2026
2 checks passed
@simoncrypta
simoncrypta deleted the handoff-base branch November 1, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant