Function: magit-read-module-path

magit-read-module-path is a byte-compiled function defined in magit-git.el.

Signature

(magit-read-module-path PROMPT &optional PREDICATE)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-git.el
(defun magit-read-module-path (prompt &optional predicate)
  ;; Predicates are evaluate with the minibuffer as the current buffer.
  ;; Unlike for other completion frameworks, Helm does not ensure that
  ;; the value of `default-directory' in that buffer is the same as in
  ;; the buffer from which completion was invoked.
  (magit-completing-read prompt (magit-list-module-paths)
                         (and predicate
                              (let ((dir default-directory))
                                (lambda (module)
                                  (let ((default-directory dir))
                                    (funcall predicate module)))))
                         t nil nil
                         (magit-module-at-point predicate)))