1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

show tags in commits panel

This commit is contained in:
Jesse Duffield
2020-02-24 23:09:55 +11:00
parent 78b62be96f
commit 0034cfef5c
3 changed files with 50 additions and 12 deletions

View File

@ -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)}