aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc/vc.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/vc/vc.el')
-rw-r--r--lisp/vc/vc.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index c640ba0420e..af7339f34b3 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -957,7 +957,7 @@ use."
957 (throw 'found bk)))) 957 (throw 'found bk))))
958 958
959;;;###autoload 959;;;###autoload
960(defun vc-responsible-backend (file) 960(defun vc-responsible-backend (file &optional no-error)
961 "Return the name of a backend system that is responsible for FILE. 961 "Return the name of a backend system that is responsible for FILE.
962 962
963If FILE is already registered, return the 963If FILE is already registered, return the
@@ -967,7 +967,10 @@ responsible for FILE is returned.
967 967
968Note that if FILE is a symbolic link, it will not be resolved -- 968Note that if FILE is a symbolic link, it will not be resolved --
969the responsible backend system for the symbolic link itself will 969the responsible backend system for the symbolic link itself will
970be reported." 970be reported.
971
972If NO-ERROR is nil, signal an error that no VC backend is
973responsible for the given file."
971 (or (and (not (file-directory-p file)) (vc-backend file)) 974 (or (and (not (file-directory-p file)) (vc-backend file))
972 (catch 'found 975 (catch 'found
973 ;; First try: find a responsible backend. If this is for registration, 976 ;; First try: find a responsible backend. If this is for registration,