diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-25 20:11:33 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-25 20:11:33 +1000 |
commit | f3fc98a3d03756ec94bcad955eda268fddb3613a (patch) | |
tree | aee3806d3cd28373cc2e95c1e1711653f1b5cfbc /pkg/gui/commits_panel.go | |
parent | a2b3cd08234e933ed572f3d95d473e19bd6adc99 (diff) |
support git flow when colouring commits
Diffstat (limited to 'pkg/gui/commits_panel.go')
-rw-r--r-- | pkg/gui/commits_panel.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go index e3f4c84ac..a86401ebf 100644 --- a/pkg/gui/commits_panel.go +++ b/pkg/gui/commits_panel.go @@ -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() |