diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-30 17:25:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | d69ce7a529474565ea61f1e104d3e42cd55ff8e1 (patch) | |
tree | 31a2dfe297c434d398f1aa90a4657a508f0e67c9 /pkg/gui/reflog_panel.go | |
parent | 9b2b0fc1226ebe0858fcbed59d87bcaae8c8a2e9 (diff) |
move reflog commit loader into loaders package
Diffstat (limited to 'pkg/gui/reflog_panel.go')
-rw-r--r-- | pkg/gui/reflog_panel.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/gui/reflog_panel.go b/pkg/gui/reflog_panel.go index 9df0d2501..c0f36aa42 100644 --- a/pkg/gui/reflog_panel.go +++ b/pkg/gui/reflog_panel.go @@ -1,6 +1,7 @@ package gui import ( + "github.com/jesseduffield/lazygit/pkg/commands/loaders" "github.com/jesseduffield/lazygit/pkg/commands/models" ) @@ -52,7 +53,9 @@ func (gui *Gui) refreshReflogCommits() error { } refresh := func(stateCommits *[]*models.Commit, filterPath string) error { - commits, onlyObtainedNewReflogCommits, err := gui.GitCommand.GetReflogCommits(lastReflogCommit, filterPath) + commits, onlyObtainedNewReflogCommits, err := loaders. + NewReflogCommitLoader(gui.Common, gui.GitCommand.Cmd). + GetReflogCommits(lastReflogCommit, filterPath) if err != nil { return gui.surfaceError(err) } |