Function: magit-read-module-path
magit-read-module-path is a natively compiled function defined in
magit-git.el.
Signature
(magit-read-module-path PROMPT &optional PREDICATE)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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)))