diff lisp/vc-git.el @ 87516:de0bd1c6cbfd

(vc-git-dir-state): Set the vc-backend property. Do not disable undo, with-temp-buffer does it by default.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 01 Jan 2008 19:47:21 +0000
parents b5060e79eb98
children 77d4b0e5e5d2
line wrap: on
line diff
--- a/lisp/vc-git.el	Tue Jan 01 19:03:27 2008 +0000
+++ b/lisp/vc-git.el	Tue Jan 01 19:47:21 2008 +0000
@@ -155,7 +155,6 @@
   "Git-specific version of `dir-state'."
   ;; FIXME: This can't set 'ignored yet
   (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)
@@ -172,12 +171,16 @@
 	 ;; should not show up in vc-dired, so don't deal with them
 	 ;; here.
 	 ((eq status-char ?H)
+	  (vc-file-setprop file 'vc-backend 'Git)
 	  (vc-file-setprop file 'vc-state 'up-to-date))
 	 ((eq status-char ?R)
+	  (vc-file-setprop file 'vc-backend 'Git)
 	  (vc-file-setprop file 'vc-state 'removed))
 	 ((eq status-char ?M)
+	  (vc-file-setprop file 'vc-backend 'Git)
 	  (vc-file-setprop file 'vc-state 'edited))
 	 ((eq status-char ?C)
+	  (vc-file-setprop file 'vc-backend 'Git)
 	  (vc-file-setprop file 'vc-state 'edited))
 	 ((eq status-char ??)
 	  (vc-file-setprop file 'vc-backend 'none)