diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-30 13:44:41 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | 96c2887fd0c1ca95e6b3d55756be8d424f8d905a (patch) | |
tree | 6973630fba55d6d6e3c7720db0682ec22d4094d5 /pkg/gui/branches_panel.go | |
parent | 66e840bc3f83903852408ed8db0be0c6153b5487 (diff) |
WIP
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 8dff14ac1..599966794 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -6,6 +6,7 @@ import ( "strings" "github.com/jesseduffield/lazygit/pkg/commands" + "github.com/jesseduffield/lazygit/pkg/commands/loaders" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/commands/oscommands" "github.com/jesseduffield/lazygit/pkg/utils" @@ -61,13 +62,12 @@ func (gui *Gui) refreshBranches() { } } - builder := commands.NewBranchListBuilder( + loader := loaders.NewBranchLoader( gui.Common, - gui.GitCommand.GetRawBranches, - gui.GitCommand.CurrentBranchName, + gui.GitCommand, reflogCommits, ) - gui.State.Branches = builder.Build() + gui.State.Branches = loader.Load() if err := gui.postRefreshUpdate(gui.State.Contexts.Branches); err != nil { gui.Log.Error(err) |