Function: magit-submodule-read-path

magit-submodule-read-path is a natively compiled function defined in magit-submodule.el.

Signature

(magit-submodule-read-path PROMPT URL)

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-submodule.el
(defun magit-submodule-read-path (prompt url)
  (directory-file-name
   (file-relative-name
    (read-directory-name prompt nil nil nil
                         (and (string-match "\\([^./]+\\)\\(\\.git\\)?$" url)
                              (match-str 1 url))))))