diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-02 10:21:32 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | 194ff1630c11303e3de1c87f61103b3aadcd175d (patch) | |
tree | ab57dbd60347668e12c72d6e169063e770c3beac /pkg/gui/sub_commits_panel.go | |
parent | 2cb8aff940b79f20a09c0ed2bde13ec3b34a13cb (diff) |
do dependency injection up front and in one place
Diffstat (limited to 'pkg/gui/sub_commits_panel.go')
-rw-r--r-- | pkg/gui/sub_commits_panel.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/gui/sub_commits_panel.go b/pkg/gui/sub_commits_panel.go index 83661100d..aede87f27 100644 --- a/pkg/gui/sub_commits_panel.go +++ b/pkg/gui/sub_commits_panel.go @@ -75,9 +75,7 @@ func (gui *Gui) handleViewSubCommitFiles() error { func (gui *Gui) switchToSubCommitsContext(refName string) error { // need to populate my sub commits - loader := loaders.NewCommitLoader(gui.Common, gui.GitCommand) - - commits, err := loader.GetCommits( + commits, err := gui.GitCommand.Loaders.Commits.GetCommits( loaders.GetCommitsOptions{ Limit: gui.State.Panels.Commits.LimitCommits, FilterPath: gui.State.Modes.Filtering.GetPath(), |