Skip to content

fix: create branch dialog not respecting stash & reapply default preference - #2473

Merged
love-linger merged 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/create-branch-not-respecting-stash-and-reapply-preference
Jun 24, 2026
Merged

fix: create branch dialog not respecting stash & reapply default preference#2473
love-linger merged 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/create-branch-not-respecting-stash-and-reapply-preference

Conversation

@JC-Chung

Copy link
Copy Markdown
Contributor

When "Stash & reapply changes by default" is enabled in preferences,
the local changes option in the Create Branch dialog always defaults
to "Do Nothing" instead of "Stash & Reapply".

All three CreateBranch constructors hardcode
DealWithLocalChanges = DoNothing without checking
Preferences.Instance.UseStashAndReapplyByDefault, unlike Checkout,
Pull, and CheckoutAndFastForward which all respect the preference.

Fix by applying the same conditional initialization in all three
CreateBranch constructors.

@love-linger love-linger self-assigned this Jun 24, 2026
@love-linger love-linger added the enhancement New feature or request label Jun 24, 2026
@love-linger
love-linger merged commit f7c61cb into sourcegit-scm:develop Jun 24, 2026
14 checks passed
@JC-Chung
JC-Chung deleted the fix/create-branch-not-respecting-stash-and-reapply-preference branch June 24, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

2 participants