Function: git-rebase-update-ref

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

Signature

(git-rebase-update-ref ARG)

Documentation

Insert an update-ref action after the current line.

If there is already an update-ref action on the current line, then edit that instead. With a prefix argument, insert a new action even when there is already one on the current line. With empty input, remove the action on the current line, if any.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-rebase.el
(defun git-rebase-update-ref (arg)
  "Insert an update-ref action after the current line.
If there is already an update-ref action on the current line,
then edit that instead.  With a prefix argument, insert a new
action even when there is already one on the current line.  With
empty input, remove the action on the current line, if any."
  (interactive "P")
  (git-rebase-set-noncommit-action
   "update-ref"
   (lambda (initial)
     (or (magit-completing-read "Ref" (magit-list-refs) nil nil initial)
         ""))
   arg))