1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Use confirmation popup for amending last commit.

This commit is contained in:
Kristijan Husak
2018-09-25 22:11:51 +02:00
parent b6b21bc98e
commit 28fe3d6cf9
6 changed files with 24 additions and 27 deletions

View File

@ -12,8 +12,7 @@ func (gui *Gui) handleCommitConfirm(g *gocui.Gui, v *gocui.View) error {
if message == "" {
return gui.createErrorPanel(g, gui.Tr.SLocalize("CommitWithoutMessageErr"))
}
amendCommit := v.Title == gui.Tr.SLocalize("AmendLastCommit")
sub, err := gui.GitCommand.Commit(message, amendCommit)
sub, err := gui.GitCommand.Commit(message, false)
if err != nil {
// TODO need to find a way to send through this error
if err != gui.Errors.ErrSubProcess {