Function: git-rebase-reset

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

Signature

(git-rebase-reset ARG)

Documentation

Reset the current HEAD to a label.

If there already is a reset command on the current line, then edit that instead. With a prefix argument, insert a new reset line even when point is already on a reset line. With empty input, remove the reset 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-reset (arg)
  "Reset the current HEAD to a label.
If there already is a reset command on the current line, then
edit that instead.  With a prefix argument, insert a new reset
line even when point is already on a reset line.  With empty
input, remove the reset command on the current line, if any."
  (interactive "P")
  (git-rebase-set-noncommit-action
   "reset"
   (lambda (initial)
     (or (magit-completing-read "Label" (git-rebase-buffer-labels)
                                nil t initial)
         ""))
   arg))