mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-15 23:54:58 +00:00
feature: allow to reset author when --amend
is enabled for committing
This commit is contained in:
parent
d3bc85418e
commit
0641a22230
8 changed files with 38 additions and 12 deletions
|
@ -37,9 +37,11 @@ namespace SourceGit.ViewModels
|
|||
var log = _repo.CreateLog("Reword HEAD");
|
||||
Use(log);
|
||||
|
||||
var signOff = _repo.Settings.EnableSignOffForCommit;
|
||||
return Task.Run(() =>
|
||||
{
|
||||
var succ = new Commands.Commit(_repo.FullPath, _message, true, _repo.Settings.EnableSignOffForCommit).Use(log).Run();
|
||||
// For reword (only changes the commit message), disable `--reset-author`
|
||||
var succ = new Commands.Commit(_repo.FullPath, _message, signOff, true, false).Use(log).Run();
|
||||
log.Complete();
|
||||
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
||||
return succ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue