summaryrefslogtreecommitdiffstats
path: root/pkg/commands/commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/commit.go')
-rw-r--r--pkg/commands/commit.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/commands/commit.go b/pkg/commands/commit.go
index 37c3e9525..54e94ef60 100644
--- a/pkg/commands/commit.go
+++ b/pkg/commands/commit.go
@@ -9,17 +9,21 @@ type Commit struct {
Sha string
Name string
Pushed bool
+ Merged bool
DisplayString string
}
func (c *Commit) GetDisplayStrings() []string {
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 := yellow
if c.Pushed {
shaColor = red
+ } else if !c.Merged {
+ shaColor = green
}
return []string{shaColor.Sprint(c.Sha), white.Sprint(c.Name)}