Function: magit-clone--name-to-url

magit-clone--name-to-url is a byte-compiled function defined in magit-clone.el.

Signature

(magit-clone--name-to-url NAME)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-clone.el
(defun magit-clone--name-to-url (name)
  (or (seq-some
       (pcase-lambda (`(,re ,host ,user))
         (and (string-match re name)
              (let ((repo (match-str 1 name)))
                (magit-clone--format-url host user repo))))
       magit-clone-name-alist)
      (user-error "Not an url and no matching entry in `%s'"
                  'magit-clone-name-alist)))