diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-10 16:01:46 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 17:07:49 +1000 |
commit | bb918b579a3073d786fda83a2bc11c602e442aa0 (patch) | |
tree | fe126f12a88db9a9e119d0b172c0902bc0f49244 /pkg/gui/commit_message_panel.go | |
parent | e145090046e1693e2100cb0a0ab40a271705f4b0 (diff) |
start adding support for logging of commands
Diffstat (limited to 'pkg/gui/commit_message_panel.go')
-rw-r--r-- | pkg/gui/commit_message_panel.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/gui/commit_message_panel.go b/pkg/gui/commit_message_panel.go index 133174d77..21a5d2cfc 100644 --- a/pkg/gui/commit_message_panel.go +++ b/pkg/gui/commit_message_panel.go @@ -5,6 +5,7 @@ import ( "strings" "github.com/jesseduffield/gocui" + "github.com/jesseduffield/lazygit/pkg/commands/oscommands" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -19,7 +20,9 @@ func (gui *Gui) handleCommitConfirm() error { flags = "--no-verify" } - return gui.withGpgHandling(gui.GitCommand.CommitCmdStr(message, flags), gui.Tr.CommittingStatus, func() error { + cmdStr := gui.GitCommand.CommitCmdStr(message, flags) + gui.OnRunCommand(oscommands.NewCmdLogEntry(cmdStr, "Commit", true)) + return gui.withGpgHandling(cmdStr, gui.Tr.CommittingStatus, func() error { _ = gui.returnFromContext() gui.clearEditorView(gui.Views.CommitMessage) return nil |