mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-25 03:12:21 +08:00
feature: prefer same name if new branch is created based on a remote branch
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user