Function: magit-read-local-branch-or-commit
magit-read-local-branch-or-commit is a byte-compiled function defined
in magit-git.el.
Signature
(magit-read-local-branch-or-commit PROMPT)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-read-local-branch-or-commit (prompt)
(let ((choices (nconc (magit-list-local-branch-names)
(magit-list-special-refnames)))
(commit (magit-commit-at-point)))
(when commit
(push commit choices))
(minibuffer-with-setup-hook #'magit--minibuf-default-add-commit
(magit-completing-read prompt choices
nil 'any nil 'magit-revision-history
(or (magit-local-branch-at-point) commit)))))