Function: magit-notes-read-ref
magit-notes-read-ref is a byte-compiled function defined in
magit-notes.el.
Signature
(magit-notes-read-ref PROMPT &optional INITIAL-INPUT HISTORY)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-notes.el
;;; Readers
(defun magit-notes-read-ref (prompt &optional _initial-input history)
(and-let ((ref (magit-completing-read
prompt (magit-list-notes-refnames) nil t
(and-let ((def (magit-get "core.notesRef")))
(if (string-prefix-p "refs/notes/" def)
(substring def 11)
def))
history)))
(if (string-prefix-p "refs/" ref)
ref
(concat "refs/notes/" ref))))