mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 18:30:34 +08:00
fix: editing commit message button should be available for Fixup action in Interactive Rebase window
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -347,7 +347,8 @@ namespace SourceGit.ViewModels
|
||||
item.FullMessage = item.OriginalFullMessage;
|
||||
|
||||
item.CanReword = !hasPendingTarget;
|
||||
item.ShowEditMessageButton = item.CanReword && (item.Action == Models.InteractiveRebaseAction.Squash || item.Action == Models.InteractiveRebaseAction.Reword);
|
||||
item.ShowEditMessageButton = item.CanReword &&
|
||||
(item.Action == Models.InteractiveRebaseAction.Reword || item.Action == Models.InteractiveRebaseAction.Squash || item.Action == Models.InteractiveRebaseAction.Fixup);
|
||||
|
||||
if (item.Action != Models.InteractiveRebaseAction.Drop)
|
||||
hasPendingTarget = item.Action == Models.InteractiveRebaseAction.Squash || item.Action == Models.InteractiveRebaseAction.Fixup;
|
||||
|
||||
Reference in New Issue
Block a user