diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-18 21:32:24 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-18 21:45:35 +1000 |
commit | c789bba673da883af4d812a85819d6309c915f34 (patch) | |
tree | e52d5e9871c41f1a5a68c6dfc38454235fddfbe7 /pkg/gui/commits_panel.go | |
parent | ca2eec60fe762216fa9e854aee0b9fb99a2ea550 (diff) |
color merged and unmerged commits differently
Diffstat (limited to 'pkg/gui/commits_panel.go')
-rw-r--r-- | pkg/gui/commits_panel.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go index 1c1662475..3d9b10058 100644 --- a/pkg/gui/commits_panel.go +++ b/pkg/gui/commits_panel.go @@ -17,12 +17,15 @@ func (gui *Gui) refreshCommits(g *gocui.Gui) error { } v.Clear() red := color.New(color.FgRed) - yellow := color.New(color.FgYellow) + yellow := color.New(color.FgGreen) + green := color.New(color.FgYellow) white := color.New(color.FgWhite) shaColor := white for _, commit := range gui.State.Commits { - if commit.Pushed { + if !commit.Pushed { shaColor = red + } else if !commit.Merged { + shaColor = green } else { shaColor = yellow } |