summaryrefslogtreecommitdiffstats
path: root/pkg/gui/panels/branches_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/panels/branches_panel.go')
-rw-r--r--pkg/gui/panels/branches_panel.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/gui/panels/branches_panel.go b/pkg/gui/panels/branches_panel.go
index 82b8542ad..63e3ad7e8 100644
--- a/pkg/gui/panels/branches_panel.go
+++ b/pkg/gui/panels/branches_panel.go
@@ -1,4 +1,4 @@
-package main
+package panels
import (
"fmt"
@@ -123,7 +123,8 @@ func refreshBranches(g *gocui.Gui) error {
if err != nil {
panic(err)
}
- state.Branches = git.GetGitBranches()
+ builder := git.newBranchListBuilder() // TODO: add constructor params
+ state.Branches = builder.build()
v.Clear()
for _, branch := range state.Branches {
fmt.Fprintln(v, branch.getDisplayString())