Skip to content

migrate shadow branch if base commit changed after pull/rebase#39

Merged
gtrrz-victor merged 1 commit intosoph/multi-sessionfrom
soph/shadow-branch-migration
Jan 13, 2026
Merged

migrate shadow branch if base commit changed after pull/rebase#39
gtrrz-victor merged 1 commit intosoph/multi-sessionfrom
soph/shadow-branch-migration

Conversation

@Soph
Copy link
Collaborator

@Soph Soph commented Jan 13, 2026

Found / noticed this when working on #32

If user does stash → pull → apply, HEAD changes but the shadow branch is left at the old commit, orphaning checkpoints. This PR addresses this that when base commit changes and old shadow branch exists (meaning user didn't commit), move the shadow branch to the new commit.

@Soph Soph force-pushed the soph/shadow-branch-migration branch from 398b7ff to a88ed15 Compare January 13, 2026 16:29
@gtrrz-victor gtrrz-victor merged commit 80ee2ec into soph/multi-session Jan 13, 2026
3 checks passed
@gtrrz-victor gtrrz-victor deleted the soph/shadow-branch-migration branch January 13, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants