mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 20:05:50 +02:00
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:
parent
014fa63299
commit
70e3df1fa7
1 changed files with 9 additions and 1 deletions
|
@ -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 := ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue