Function: majutsu-read-remote-patterns
majutsu-read-remote-patterns is a natively compiled function defined
in majutsu-remote.el.
Signature
(majutsu-read-remote-patterns PROMPT &optional CANDIDATES DEFAULT INITIAL-INPUT HISTORY)
Documentation
Read remote name patterns with PROMPT.
CANDIDATES defaults to known Git remote names. DEFAULT is preselected when non-nil. INITIAL-INPUT and HISTORY are forwarded to the minibuffer.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-remote.el
(defun majutsu-read-remote-patterns (prompt &optional candidates default initial-input history)
"Read remote name patterns with PROMPT.
CANDIDATES defaults to known Git remote names. DEFAULT is preselected when
non-nil. INITIAL-INPUT and HISTORY are forwarded to the minibuffer."
(let ((payload (majutsu-remote-candidate-data default-directory)))
(unless (plist-get payload :candidates)
(setq payload (plist-put payload :candidates candidates)))
(majutsu-completing-read-multiple-payload
prompt payload
nil nil initial-input (or history 'majutsu-remote-pattern-history)
default 'majutsu-remote nil default-directory)))