-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I would like to have an option to disable prompt:
"Are you sure you want to reword this commit in your editor"
It's really annoying when you reword like 50 commits.
Code hints:
RewordInEditorPrompt
func (self *LocalCommitsController) rewordEditor(commit *models.Commit) error {
applied, err := self.handleMidRebaseCommand("reword", commit)
if err != nil {
return err
}
if applied {
return nil
}
return self.c.Confirm(types.ConfirmOpts{
Title: self.c.Tr.RewordInEditorTitle,
Prompt: self.c.Tr.RewordInEditorPrompt,
HandleConfirm: func() error {
self.c.LogAction(self.c.Tr.Actions.RewordCommit)
subProcess, err := self.git.Rebase.RewordCommitInEditor(
self.model.Commits, self.context().GetSelectedLineIdx(),
)
if err != nil {
return self.c.Error(err)
}
if subProcess != nil {
return self.c.RunSubprocessAndRefresh(subProcess)
}
return nil
},
})
}jasonmm and keysmashes
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request