diff lisp/vc-hooks.el @ 87446:168445c0b213

* vc-hooks.el, vc.el: Move vc-directory-exclusion-list from vc.el to vc-hooks.el so it will be available to other modes, such as speedbar.el. Also, teach it to recognize monotine state directories. * speedbar.el: Remove this mode's fragile assumptions about version-control systems. Instead, make it use logic from vc-hooks.el so it will become smarter whenever VC mode does. * vc-hooks.el: 'added is a real state, not a future hypothetical one. Fix the documentation.
author Eric S. Raymond <esr@snark.thyrsus.com>
date Fri, 28 Dec 2007 13:29:41 +0000
parents 214f565ec827
children 71fc7b1db920
line wrap: on
line diff
--- a/lisp/vc-hooks.el	Fri Dec 28 10:00:02 2007 +0000
+++ b/lisp/vc-hooks.el	Fri Dec 28 13:29:41 2007 +0000
@@ -76,6 +76,13 @@
   :version "23.1"
   :group 'vc)
 
+(defcustom vc-directory-exclusion-list '("SCCS" "RCS" "CVS" "MCVS" 
+					 ".svn" ".git" ".hg" ".bzr" 
+					 "_MTN" "{arch}")
+  "List of directory names to be ignored when walking directory trees."
+  :type '(repeat string)
+  :group 'vc)
+
 (defcustom vc-path
   (if (file-directory-p "/usr/sccs")
       '("/usr/sccs")