Function: vc-guess-url-backend

vc-guess-url-backend is a byte-compiled function defined in vc.el.gz.

Signature

(vc-guess-url-backend URL)

Documentation

Guess the VC backend for URL.

This function will internally query vc-clone-heuristic-alist and return nil if it cannot reasonably guess.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
(defun vc-guess-url-backend (url)
  "Guess the VC backend for URL.
This function will internally query `vc-clone-heuristic-alist'
and return nil if it cannot reasonably guess."
  (and url (alist-get url vc-clone-heuristic-alist
                      nil nil #'string-match-p)))