diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-30 10:40:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | f97de692e32be50a54a93b75d3686da0495275cb (patch) | |
tree | 45a65ffb90d6c3897cd554f9551082e7466467fc /pkg/gui/reflog_panel.go | |
parent | 2692637fbeac353d805399dd97714c235f88f303 (diff) |
move helpers into their own struct
Diffstat (limited to 'pkg/gui/reflog_panel.go')
-rw-r--r-- | pkg/gui/reflog_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/reflog_panel.go b/pkg/gui/reflog_panel.go index 4857840d2..39292c7ba 100644 --- a/pkg/gui/reflog_panel.go +++ b/pkg/gui/reflog_panel.go @@ -48,7 +48,7 @@ func (gui *Gui) CheckoutReflogCommit() error { Prompt: gui.c.Tr.SureCheckoutThisCommit, HandleConfirm: func() error { gui.c.LogAction(gui.c.Tr.Actions.CheckoutReflogCommit) - return gui.refsHelper.CheckoutRef(commit.Sha, types.CheckoutRefOptions{}) + return gui.helpers.refs.CheckoutRef(commit.Sha, types.CheckoutRefOptions{}) }, }) if err != nil { @@ -63,7 +63,7 @@ func (gui *Gui) CheckoutReflogCommit() error { func (gui *Gui) handleCreateReflogResetMenu() error { commit := gui.getSelectedReflogCommit() - return gui.refsHelper.CreateGitResetMenu(commit.Sha) + return gui.helpers.refs.CreateGitResetMenu(commit.Sha) } func (gui *Gui) handleViewReflogCommitFiles() error { |