Function: git-rebase-label

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

Signature

(git-rebase-label ARG)

Documentation

Add a label after the current commit.

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

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-rebase.el
(defun git-rebase-label (arg)
  "Add a label after the current commit.
If there already is a label on the current line, then edit that
instead.  With a prefix argument, insert a new label even when
there is already a label on the current line.  With empty input,
remove the label on the current line, if any."
  (interactive "P")
  (git-rebase-set-noncommit-action
   "label"
   (lambda (initial)
     (read-from-minibuffer
      "Label: " initial magit-minibuffer-local-ns-map))
   arg))