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:
committed by
Stefan Haller
parent
aa331e52b8
commit
708b30ab8a
@ -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 {
|
||||
|
Reference in New Issue
Block a user