summaryrefslogtreecommitdiffstats
path: root/pkg/gui/commits_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-09-18 21:32:24 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-09-18 21:45:35 +1000
commitc789bba673da883af4d812a85819d6309c915f34 (patch)
treee52d5e9871c41f1a5a68c6dfc38454235fddfbe7 /pkg/gui/commits_panel.go
parentca2eec60fe762216fa9e854aee0b9fb99a2ea550 (diff)
color merged and unmerged commits differently
Diffstat (limited to 'pkg/gui/commits_panel.go')
-rw-r--r--pkg/gui/commits_panel.go7
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
}