Function: magit-submodule-read-path

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

Signature

(magit-submodule-read-path PROMPT URL)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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))))))