Skip to content

Commit

Permalink
fixup! Prompt for commit message when moving a custom patch to a new …
Browse files Browse the repository at this point in the history
…commit
  • Loading branch information
stefanhaller committed Jul 20, 2023
1 parent 5e01ddb commit fc5730a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/gui/controllers/custom_patch_options_menu_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ func (self *CustomPatchOptionsMenuAction) handlePullPatchIntoNewCommit() error {
commitIndex := self.getPatchCommitIndex()
return self.c.Helpers().Commits.OpenCommitMessagePanel(
&helpers.OpenCommitMessagePanelOpts{
CommitIndex: commitIndex,
// Pass a commit index of one less than the moved-from commit, so that
// you can press up arrow once to recall the original commit message:
CommitIndex: commitIndex - 1,
InitialMessage: "",
Title: self.c.Tr.CommitSummary,
PreserveMessage: false,
Expand Down

0 comments on commit fc5730a

Please sign in to comment.