diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-21 18:27:20 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-25 09:39:04 +1100 |
commit | 0e23f44b846b3bd43112c3e0f81f6fbfb45b22e6 (patch) | |
tree | c87220dc348c4243ea62b97478c98e9e9083610c /pkg/gui/reset_menu_panel.go | |
parent | daecdd7c2b678e308b01d9e402c86c06a35b8021 (diff) |
support reflog action prefix
Diffstat (limited to 'pkg/gui/reset_menu_panel.go')
-rw-r--r-- | pkg/gui/reset_menu_panel.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/gui/reset_menu_panel.go b/pkg/gui/reset_menu_panel.go index 49dd95c3c..5103044a2 100644 --- a/pkg/gui/reset_menu_panel.go +++ b/pkg/gui/reset_menu_panel.go @@ -4,10 +4,11 @@ import ( "fmt" "github.com/fatih/color" + "github.com/jesseduffield/lazygit/pkg/commands" ) -func (gui *Gui) resetToRef(ref string, strength string) error { - if err := gui.GitCommand.ResetToCommit(ref, strength); err != nil { +func (gui *Gui) resetToRef(ref string, strength string, options commands.RunCommandOptions) error { + if err := gui.GitCommand.ResetToCommit(ref, strength, options); err != nil { return gui.createErrorPanel(gui.g, err.Error()) } @@ -47,7 +48,7 @@ func (gui *Gui) createResetMenu(ref string) error { ), }, onPress: func() error { - return gui.resetToRef(ref, strength) + return gui.resetToRef(ref, strength, commands.RunCommandOptions{}) }, } } |