diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-26 22:51:24 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 11:59:45 +1100 |
commit | fbbd16bd829d6f2a8797453f2d05856b33d34d44 (patch) | |
tree | c49e5347d0cfa7dd7706724c8cc03942aece641f /pkg/gui/branches_panel.go | |
parent | bd2c1eef53fbc6d76a34c6cf5c340e7a2eb5851b (diff) |
use reflogs from state to work out branch recencies
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 6ca257ed4..fe947f50f 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -63,7 +63,7 @@ func (gui *Gui) refreshBranches(g *gocui.Gui) error { } g.Update(func(g *gocui.Gui) error { - builder, err := commands.NewBranchListBuilder(gui.Log, gui.GitCommand) + builder, err := commands.NewBranchListBuilder(gui.Log, gui.GitCommand, gui.State.ReflogCommits) if err != nil { return err } @@ -374,7 +374,7 @@ func (gui *Gui) handleFastForward(g *gocui.Gui, v *gocui.View) error { if err := gui.GitCommand.FastForward(branch.Name, remoteName, remoteBranchName); err != nil { _ = gui.createErrorPanel(gui.g, err.Error()) } - _ = gui.refreshBranches(gui.g) + _ = gui.refreshCommits(gui.g) } _ = gui.closeConfirmationPrompt(gui.g, true) @@ -481,7 +481,7 @@ func (gui *Gui) handleRenameBranch(g *gocui.Gui, v *gocui.View) error { return gui.createErrorPanel(gui.g, err.Error()) } - return gui.refreshBranches(gui.g) + return gui.refreshCommits(gui.g) }) } |