Function: vc-possible-master

vc-possible-master is a byte-compiled function defined in vc-hooks.el.gz.

Signature

(vc-possible-master S DIRNAME BASENAME)

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-hooks.el.gz
	nil))))				; Not registered

;;;###autoload
(defun vc-possible-master (s dirname basename)
  (cond
   ((stringp s) (format s dirname basename))
   ((functionp s)
    ;; The template is a function to invoke.  If the
    ;; function returns non-nil, that means it has found a
    ;; master.  For backward compatibility, we also handle
    ;; the case that the function throws a 'found atom
    ;; and a pair (cons MASTER-FILE BACKEND).
    (let ((result (catch 'found (funcall s dirname basename))))
      (if (consp result) (car result) result)))))