diff lisp/vc-git.el @ 87442:c5df210848ca

* vc-bzr.el, vc-cvs.el, vc-git.el, vc-hg.el, vc-mcvs.el, vc-svn.el: Modify all instances of the dir-state back-end method to suppress keeping undo lists on the buffers holding astatus output, which csn get extremely large.
author Eric S. Raymond <esr@snark.thyrsus.com>
date Fri, 28 Dec 2007 08:59:50 +0000
parents 7c0a55a957d0
children 71fc7b1db920
line wrap: on
line diff
--- a/lisp/vc-git.el	Fri Dec 28 08:09:57 2007 +0000
+++ b/lisp/vc-git.el	Fri Dec 28 08:59:50 2007 +0000
@@ -152,6 +152,7 @@
 
 (defun vc-git-dir-state (dir)
   (with-temp-buffer
+    (buffer-disable-undo)		;; Because these buffers can get huge
     (vc-git-command (current-buffer) nil nil "ls-files" "-t" "-c" "-m" "-o")
     (goto-char (point-min))
     (let ((status-char nil)