mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
feature: prefer same name if new branch is created based on a remote branch
This commit is contained in:
parent
fc0ac109d8
commit
2ec46c9da0
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ namespace SourceGit.ViewModels {
|
|||
_repo = repo;
|
||||
_baseOnRevision = branch.FullName;
|
||||
|
||||
if (!branch.IsLocal && repo.Branches.Find(x => x.IsLocal && x.Name == branch.Name) == null) {
|
||||
Name = branch.Name;
|
||||
}
|
||||
|
||||
BasedOn = branch;
|
||||
View = new Views.CreateBranch() { DataContext = this };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue