Function: git-rebase-merge

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

Signature

(git-rebase-merge ARG)

Documentation

Add a merge command after the current commit.

If there is already a merge command on the current line, then replace that command instead. With a prefix argument, insert a new merge command even when there is already one on the current line. With empty input, remove the merge command on the current line, if any.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-rebase.el
(defun git-rebase-merge (arg)
  "Add a merge command after the current commit.
If there is already a merge command on the current line, then
replace that command instead.  With a prefix argument, insert a
new merge command even when there is already one on the current
line.  With empty input, remove the merge command on the current
line, if any."
  (interactive "P")
  (git-rebase-set-noncommit-action
   "merge"
   (lambda (_)
     (or (magit-completing-read "Merge" (git-rebase-buffer-labels))
         ""))
   arg))