Function: magit-read-local-branch-or-ref
magit-read-local-branch-or-ref is a byte-compiled function defined in
magit-git.el.
Signature
(magit-read-local-branch-or-ref PROMPT &optional SECONDARY-DEFAULT)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-read-local-branch-or-ref (prompt &optional secondary-default)
(magit-completing-read prompt (nconc (magit-list-local-branch-names)
(magit-list-refs "refs/"))
nil t nil 'magit-revision-history
(or (magit-local-branch-at-point)
secondary-default
(magit-get-current-branch))))