mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
enhance: use -B instead of -b to support creating worktree with existed branch (#205)
This commit is contained in:
@@ -70,7 +70,7 @@ namespace SourceGit.Commands
|
||||
Args += "--track ";
|
||||
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
Args += $"-b {name} ";
|
||||
Args += $"-B {name} ";
|
||||
|
||||
Args += $"\"{fullpath}\" ";
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace SourceGit.Views
|
||||
{
|
||||
public Launcher()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
var layout = ViewModels.Preference.Instance.Layout;
|
||||
WindowState = layout.LauncherWindowState;
|
||||
|
||||
@@ -21,6 +19,8 @@ namespace SourceGit.Views
|
||||
Width = layout.LauncherWidth;
|
||||
Height = layout.LauncherHeight;
|
||||
}
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
|
||||
|
||||
Reference in New Issue
Block a user