mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Use confirmation popup for amending last commit.
This commit is contained in:
parent
b6b21bc98e
commit
28fe3d6cf9
6 changed files with 24 additions and 27 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue