You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preserve stack when committing by using explicit parent
Committing to a stacked branch was unstacking it because the commit
routine let the parent be auto-detected, which could detach the stack.
This change finds the intended target branch (honoring an optional
branch hint via exact name or CLI id parsing), uses that branch's tip as
the explicit parent for create_commit_simple, and thus preserves the
stack relationship.
- Resolve target stack and branch selection: try branch hint first, fall back to stack HEAD.
- Parse CLI branch hints to match branch names when needed.
- Pass branch tip as parent_id to the simple commit engine to avoid unstacking.
0 commit comments