diff options
Diffstat (limited to 'pkg/gui/commitsview.go')
| -rw-r--r-- | pkg/gui/commitsview.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/commitsview.go b/pkg/gui/commitsview.go index 91cb795..6d1325c 100644 --- a/pkg/gui/commitsview.go +++ b/pkg/gui/commitsview.go @@ -20,8 +20,10 @@ func (gui *Gui) updateCommits(g *gocui.Gui, entity *git.RepoEntity) error { totalcommits := len(entity.Commits) for i, c := range entity.Commits { var body string - if c.CommitType == git.LocalCommit { + if c.CommitType == git.EvenCommit { body = cyan.Sprint(c.Hash[:hashLength]) + " " + c.Message + } else if c.CommitType == git.LocalCommit { + body = blue.Sprint(c.Hash[:hashLength]) + " " + c.Message } else { body = yellow.Sprint(c.Hash[:hashLength]) + " " + c.Message } |
