support git flow when colouring commits

This commit is contained in:
Jesse Duffield
2018-09-25 20:11:33 +10:00
parent a2b3cd0823
commit f3fc98a3d0
3 changed files with 54 additions and 17 deletions

View File

@@ -11,10 +11,15 @@ import (
func (gui *Gui) refreshCommits(g *gocui.Gui) error {
g.Update(func(*gocui.Gui) error {
gui.State.Commits = gui.GitCommand.GetCommits()
commits, err := gui.GitCommand.GetCommits()
if err != nil {
return err
}
gui.State.Commits = commits
v, err := g.View("commits")
if err != nil {
panic(err)
return err
}
v.Clear()