summaryrefslogtreecommitdiffstats
path: root/pkg/gui/reset_menu_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-10 16:25:45 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-11 17:07:49 +1000
commit74320f00752926b42f0e4d6f84b3816d7a0134a9 (patch)
treef02514330a4c1494c7233a11312d6a194c9d9122 /pkg/gui/reset_menu_panel.go
parentbfad972f0c75bb0fb4a60cf6848c1ab205254d87 (diff)
more logging of commands
Diffstat (limited to 'pkg/gui/reset_menu_panel.go')
-rw-r--r--pkg/gui/reset_menu_panel.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/reset_menu_panel.go b/pkg/gui/reset_menu_panel.go
index f3506f4c3..f1736e2c2 100644
--- a/pkg/gui/reset_menu_panel.go
+++ b/pkg/gui/reset_menu_panel.go
@@ -7,8 +7,8 @@ import (
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
)
-func (gui *Gui) resetToRef(ref string, strength string, options oscommands.RunCommandOptions) error {
- if err := gui.GitCommand.ResetToCommit(ref, strength, options); err != nil {
+func (gui *Gui) resetToRef(ref string, strength string, span string, options oscommands.RunCommandOptions) error {
+ if err := gui.GitCommand.WithSpan(span).ResetToCommit(ref, strength, options); err != nil {
return gui.surfaceError(err)
}
@@ -41,7 +41,7 @@ func (gui *Gui) createResetMenu(ref string) error {
),
},
onPress: func() error {
- return gui.resetToRef(ref, strength, oscommands.RunCommandOptions{})
+ return gui.resetToRef(ref, strength, "Reset", oscommands.RunCommandOptions{})
},
}
}