Function: magit-read-remote
magit-read-remote is a byte-compiled function defined in magit-git.el.
Signature
(magit-read-remote PROMPT &optional DEFAULT USE-ONLY)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-read-remote (prompt &optional default use-only)
(let ((remotes (magit-list-remotes)))
(if (and use-only (length= remotes 1))
(car remotes)
(magit-completing-read prompt remotes
nil t nil nil
(or default
(magit-remote-at-point)
(magit-get-remote))))))