mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
enhance: use -B
instead of -b
to support creating worktree with existed branch (#205)
This commit is contained in:
parent
ac00d1a221
commit
8dfe882455
2 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ namespace SourceGit.Commands
|
||||||
Args += "--track ";
|
Args += "--track ";
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(name))
|
if (!string.IsNullOrEmpty(name))
|
||||||
Args += $"-b {name} ";
|
Args += $"-B {name} ";
|
||||||
|
|
||||||
Args += $"\"{fullpath}\" ";
|
Args += $"\"{fullpath}\" ";
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,6 @@ namespace SourceGit.Views
|
||||||
{
|
{
|
||||||
public Launcher()
|
public Launcher()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
|
||||||
|
|
||||||
var layout = ViewModels.Preference.Instance.Layout;
|
var layout = ViewModels.Preference.Instance.Layout;
|
||||||
WindowState = layout.LauncherWindowState;
|
WindowState = layout.LauncherWindowState;
|
||||||
|
|
||||||
|
@ -21,6 +19,8 @@ namespace SourceGit.Views
|
||||||
Width = layout.LauncherWidth;
|
Width = layout.LauncherWidth;
|
||||||
Height = layout.LauncherHeight;
|
Height = layout.LauncherHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
|
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
|
||||||
|
|
Loading…
Reference in a new issue