feature: support --ff-only option for git merge command

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-03-17 19:53:47 +08:00
parent 2b95ea2ab1
commit a0cddaea80
No known key found for this signature in database
4 changed files with 14 additions and 11 deletions

View file

@ -1516,7 +1516,7 @@ namespace SourceGit.ViewModels
return;
if (CanCreatePopup())
ShowAndStartPopup(new Merge(this, b, branch.Name));
ShowAndStartPopup(new Merge(this, b, branch.Name, true));
e.Handled = true;
};
@ -1595,7 +1595,7 @@ namespace SourceGit.ViewModels
merge.Click += (_, e) =>
{
if (CanCreatePopup())
ShowPopup(new Merge(this, branch, _currentBranch.Name));
ShowPopup(new Merge(this, branch, _currentBranch.Name, false));
e.Handled = true;
};
@ -1876,7 +1876,7 @@ namespace SourceGit.ViewModels
merge.Click += (_, e) =>
{
if (CanCreatePopup())
ShowPopup(new Merge(this, branch, _currentBranch.Name));
ShowPopup(new Merge(this, branch, _currentBranch.Name, false));
e.Handled = true;
};