1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Add option to disable warning when amending last commit

This commit is contained in:
John Hamlin
2025-06-12 21:14:29 -04:00
committed by Stefan Haller
parent aa331e52b8
commit 708b30ab8a
6 changed files with 41 additions and 23 deletions

View File

@ -795,7 +795,7 @@ func (self *FilesController) handleAmendCommitPress() error {
},
},
})
} else {
} else if !self.c.UserConfig().Gui.SkipAmendWarning {
self.c.Confirm(types.ConfirmOpts{
Title: self.c.Tr.AmendLastCommitTitle,
Prompt: self.c.Tr.SureToAmend,
@ -803,9 +803,11 @@ func (self *FilesController) handleAmendCommitPress() error {
return doAmend()
},
})
return nil
}
return nil
return doAmend()
}
func (self *FilesController) isResolvingConflicts() bool {