mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
WIP
This commit is contained in:
@ -24,10 +24,11 @@ func (gui *Gui) handleCommitConfirm() error {
|
||||
flags = append(flags, "--signoff")
|
||||
}
|
||||
|
||||
cmdStr := gui.GitCommand.CommitCmdStr(message, strings.Join(flags, " "))
|
||||
gui.OnRunCommand(oscommands.NewCmdLogEntry(cmdStr, gui.Tr.Spans.Commit, true))
|
||||
cmdObj := gui.GitCommand.CommitCmdObj(message, strings.Join(flags, " "))
|
||||
gui.OnRunCommand(oscommands.NewCmdLogEntry(cmdObj.ToString(), gui.Tr.Spans.Commit, true))
|
||||
|
||||
_ = gui.returnFromContext()
|
||||
return gui.withGpgHandling(cmdStr, gui.Tr.CommittingStatus, func() error {
|
||||
return gui.withGpgHandling(cmdObj, gui.Tr.CommittingStatus, func() error {
|
||||
gui.Views.CommitMessage.ClearTextArea()
|
||||
return nil
|
||||
})
|
||||
|
Reference in New Issue
Block a user