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:
leo
2025-10-29 19:12:23 +08:00
parent e67c87cefc
commit cfa7e0e749

View File

@@ -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;