diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-30 13:35:10 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | 66e840bc3f83903852408ed8db0be0c6153b5487 (patch) | |
tree | 2e3578e0ceff2fb44b8a7060f87400808eedaef7 /pkg/gui/sub_commits_panel.go | |
parent | 5b3572424380418f86df88d201347b54634be530 (diff) |
more refactoring
Diffstat (limited to 'pkg/gui/sub_commits_panel.go')
-rw-r--r-- | pkg/gui/sub_commits_panel.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/gui/sub_commits_panel.go b/pkg/gui/sub_commits_panel.go index c212e3caa..a41ccb315 100644 --- a/pkg/gui/sub_commits_panel.go +++ b/pkg/gui/sub_commits_panel.go @@ -2,6 +2,7 @@ package gui import ( "github.com/jesseduffield/lazygit/pkg/commands" + "github.com/jesseduffield/lazygit/pkg/commands/loaders" "github.com/jesseduffield/lazygit/pkg/commands/models" ) @@ -75,10 +76,10 @@ func (gui *Gui) handleViewSubCommitFiles() error { func (gui *Gui) switchToSubCommitsContext(refName string) error { // need to populate my sub commits - builder := commands.NewCommitListBuilder(gui.Common, gui.GitCommand, gui.OSCommand) + loader := commands.NewCommitLoader(gui.Common, gui.GitCommand, gui.OSCommand) - commits, err := builder.GetCommits( - commands.GetCommitsOptions{ + commits, err := loader.GetCommits( + loaders.GetCommitsOptions{ Limit: gui.State.Panels.Commits.LimitCommits, FilterPath: gui.State.Modes.Filtering.GetPath(), IncludeRebaseCommits: false, |