Function: majutsu-read-remote-pattern

majutsu-read-remote-pattern is a natively compiled function defined in majutsu-remote.el.

Signature

(majutsu-read-remote-pattern PROMPT &optional INITIAL-INPUT HISTORY DEFAULT CANDIDATES)

Documentation

Read one remote name pattern with PROMPT.

INITIAL-INPUT is inserted for editing. HISTORY defaults to majutsu-remote-pattern-history. DEFAULT is preselected when non-nil. CANDIDATES defaults to known Git remote names.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-remote.el
(defun majutsu-read-remote-pattern (prompt &optional initial-input history default candidates)
  "Read one remote name pattern with PROMPT.
INITIAL-INPUT is inserted for editing.  HISTORY defaults to
`majutsu-remote-pattern-history'.  DEFAULT is preselected when non-nil.
CANDIDATES defaults to known Git remote names."
  (let ((payload (majutsu-remote-candidate-data default-directory)))
    (unless (plist-get payload :candidates)
      (setq payload (plist-put payload :candidates candidates)))
    (majutsu-completing-read-payload
     prompt payload
     nil 'any initial-input (or history 'majutsu-remote-pattern-history)
     default 'majutsu-remote nil default-directory)))