feature: support --signoff for git commit command (#591)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-10-23 09:45:52 +08:00
parent b9d7f908c9
commit 06fd49ba92
No known key found for this signature in database
10 changed files with 48 additions and 9 deletions

View file

@ -35,7 +35,7 @@ namespace SourceGit.ViewModels
{
var succ = new Commands.Reset(_repo.FullPath, Target.SHA, "--soft").Exec();
if (succ)
succ = new Commands.Commit(_repo.FullPath, _message, true).Exec();
succ = new Commands.Commit(_repo.FullPath, _message, true, _repo.Settings.EnableSignOffForCommit).Run();
CallUIThread(() => _repo.SetWatcherEnabled(true));
return succ;
});