Function: git-rebase-merge-toggle-editmsg

git-rebase-merge-toggle-editmsg is an interactive and byte-compiled function defined in git-rebase.el.

Signature

(git-rebase-merge-toggle-editmsg)

Documentation

Toggle whether an editor is invoked when performing the merge at point.

When a merge command uses a lower-case -c, the message for the specified commit will be opened in an editor before creating the commit. For an upper-case -C, the message will be used as is.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-rebase.el
(defun git-rebase-merge-toggle-editmsg ()
  "Toggle whether an editor is invoked when performing the merge at point.
When a merge command uses a lower-case -c, the message for the
specified commit will be opened in an editor before creating the
commit.  For an upper-case -C, the message will be used as is."
  (interactive)
  (with-slots (action-type target action-options trailer)
      (git-rebase-current-line)
    (if (eq action-type 'merge)
        (let ((inhibit-read-only t))
          (magit-delete-line)
          (insert
           (format "merge %s %s %s\n"
                   (replace-regexp-in-string
                    "-[cC]" (##if (equal % "-c") "-C" "-c")
                    action-options t t)
                   target
                   trailer)))
      (ding))))