WIP Visualize the fixup flag

We show fixup↓ for the normal case where the commit message of the bottom commit
is retained, and fixup← for the special case where the message of the upper
commit is used (e.g. for 'amend!' commits).
This commit is contained in:
Stefan Haller 2025-04-27 21:41:33 +02:00
parent 014fa63299
commit 70e3df1fa7

View file

@ -387,7 +387,15 @@ func displayCommit(
actionString := ""
if commit.Action != models.ActionNone {
actionString = actionColorMap(commit.Action, commit.Status).Sprint(commit.Action.String())
actionName := commit.Action.String()
if commit.Action == todo.Fixup {
if commit.FixupFlag {
actionName += "←"
} else {
actionName += "↓"
}
}
actionString = actionColorMap(commit.Action, commit.Status).Sprint(actionName)
}
tagString := ""