Function: magit-reset-read-branch-or-commit

magit-reset-read-branch-or-commit is a byte-compiled function defined in magit-reset.el.

Signature

(magit-reset-read-branch-or-commit PROMPT)

Documentation

Prompt for and return a ref to reset HEAD to.

PROMPT is a format string, where either the current branch name or "detached head" will be substituted for %s.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-reset.el
(defun magit-reset-read-branch-or-commit (prompt)
  "Prompt for and return a ref to reset HEAD to.

PROMPT is a format string, where either the current branch name
or \"detached head\" will be substituted for %s."
  (magit-read-branch-or-commit
   (format prompt (or (magit-get-current-branch) "detached head"))))