diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-24 23:09:55 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-24 23:13:54 +1100 |
commit | 0034cfef5cb29937c8ac7daf65a5b5bfd1925331 (patch) | |
tree | 782254c4a628ed37101eb1a571e0d3794aa97767 /pkg/commands/commit.go | |
parent | 78b62be96f2476c19713622c5fc5aab794557d6c (diff) |
show tags in commits panel
Diffstat (limited to 'pkg/commands/commit.go')
-rw-r--r-- | pkg/commands/commit.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/commit.go b/pkg/commands/commit.go index 740bb5209..f60e98abd 100644 --- a/pkg/commands/commit.go +++ b/pkg/commands/commit.go @@ -61,7 +61,8 @@ func (c *Commit) GetDisplayStrings(isFocused bool) []string { if c.Action != "" { actionString = cyan.Sprint(utils.WithPadding(c.Action, 7)) + " " } else if len(c.Tags) > 0 { - tagString = utils.ColoredString(strings.Join(c.Tags, " "), color.FgMagenta) + " " + tagColor := color.New(color.FgMagenta, color.Bold) + tagString = utils.ColoredStringDirect(strings.Join(c.Tags, " "), tagColor) + " " } return []string{shaColor.Sprint(c.Sha[:8]), actionString + tagString + defaultColor.Sprint(c.Name)} |