diff lisp/vc-git.el @ 106463:783bd2552dd4

Make vc-revert change VC state from 'added to 'unregistered. * vc-git.el (vc-git-revert): Call git reset first.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 06 Dec 2009 21:25:55 +0000
parents 8272f561b710
children 67d9cb4f16c3
line wrap: on
line diff
--- a/lisp/vc-git.el	Sun Dec 06 20:25:36 2009 +0000
+++ b/lisp/vc-git.el	Sun Dec 06 21:25:55 2009 +0000
@@ -535,7 +535,8 @@
   "Revert FILE to the version stored in the git repository."
   (if contents-done
       (vc-git-command nil 0 file "update-index" "--")
-    (vc-git-command nil 0 file "checkout" "HEAD")))
+    (vc-git-command nil 0 file "reset" "-q" "--")
+    (vc-git-command nil nil file "checkout" "-q" "--")))
 
 ;;; HISTORY FUNCTIONS