aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc/vc.el
diff options
context:
space:
mode:
authorTassilo Horn2020-06-11 17:02:02 +0200
committerTassilo Horn2020-06-11 23:22:30 +0200
commitea43151b5b625ee39ff5c22b722b1b4169719123 (patch)
treeeb696f1e278f238e944f5b7db15f665b7c24f2ab /lisp/vc/vc.el
parentd8a6d2e4810a4072cabbf76170dc4bf708f27d10 (diff)
downloademacs-ea43151b5b625ee39ff5c22b722b1b4169719123.tar.gz
emacs-ea43151b5b625ee39ff5c22b722b1b4169719123.zip
bug-reference-setupbug-reference-setup
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,