diff options
Diffstat (limited to 'pkg/gui/presentation/commits.go')
-rw-r--r-- | pkg/gui/presentation/commits.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkg/gui/presentation/commits.go b/pkg/gui/presentation/commits.go index 77b946a64..f7d3e1308 100644 --- a/pkg/gui/presentation/commits.go +++ b/pkg/gui/presentation/commits.go @@ -346,16 +346,17 @@ func getShaColor( diffed := commit.Sha == diffName shaColor := theme.DefaultTextColor switch commit.Status { - case "unpushed": + case models.StatusUnpushed: shaColor = style.FgRed - case "pushed": + case models.StatusPushed: shaColor = style.FgYellow - case "merged": + case models.StatusMerged: shaColor = style.FgGreen - case "rebasing": + case models.StatusRebasing: shaColor = style.FgBlue - case "reflog": + case models.StatusReflog: shaColor = style.FgBlue + default: } if diffed { |