Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/ViewModels/CreateBranch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ public CreateBranch(Repository repo, Models.Branch branch)
Name = branch.Name;

BasedOn = branch;
DealWithLocalChanges = Models.DealWithLocalChanges.DoNothing;
DealWithLocalChanges = Preferences.Instance.UseStashAndReapplyByDefault ?
Models.DealWithLocalChanges.StashAndReapply :
Models.DealWithLocalChanges.DoNothing;
UpdateOverrideTip();
}

Expand All @@ -89,7 +91,9 @@ public CreateBranch(Repository repo, Models.Commit commit)
_head = commit.SHA;

BasedOn = commit;
DealWithLocalChanges = Models.DealWithLocalChanges.DoNothing;
DealWithLocalChanges = Preferences.Instance.UseStashAndReapplyByDefault ?
Models.DealWithLocalChanges.StashAndReapply :
Models.DealWithLocalChanges.DoNothing;
UpdateOverrideTip();
}

Expand All @@ -101,7 +105,9 @@ public CreateBranch(Repository repo, Models.Tag tag)
_head = tag.SHA;

BasedOn = tag;
DealWithLocalChanges = Models.DealWithLocalChanges.DoNothing;
DealWithLocalChanges = Preferences.Instance.UseStashAndReapplyByDefault ?
Models.DealWithLocalChanges.StashAndReapply :
Models.DealWithLocalChanges.DoNothing;
UpdateOverrideTip();
}

Expand Down
Loading