Function: magit-reset-read-branch-or-commit
magit-reset-read-branch-or-commit is a natively 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 /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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"))))