Function: magit-builtin-completing-read
magit-builtin-completing-read is a byte-compiled function defined in
magit-base.el.
Signature
(magit-builtin-completing-read PROMPT CHOICES &optional PREDICATE REQUIRE-MATCH INITIAL-INPUT HIST DEF)
Documentation
Magit wrapper for standard completing-read function.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-base.el
(defun magit-builtin-completing-read
(prompt choices &optional predicate require-match initial-input hist def)
"Magit wrapper for standard `completing-read' function."
(unless (or (bound-and-true-p helm-mode)
(bound-and-true-p ivy-mode))
(setq choices (magit--completion-table choices)))
(let ((ivy-sort-functions-alist nil))
(completing-read prompt
(lambda (str pred action)
(if (eq action 'metadata)
'(metadata (display-sort-function . identity)
(cycle-sort-function . identity))
(complete-with-action action choices str pred)))
predicate require-match
initial-input hist def)))