aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc-git.el
diff options
context:
space:
mode:
authorDan Nicolaescu2009-12-06 21:25:55 +0000
committerDan Nicolaescu2009-12-06 21:25:55 +0000
commitcebf8ec6d91c0199eed87a182b69cebbb1d9ffbb (patch)
tree8371b0c93592f3a963a8aa53b126c1f36f8c478b /lisp/vc-git.el
parent238a0f3a0dab964b19776ee2acb455ccbb2169bd (diff)
downloademacs-cebf8ec6d91c0199eed87a182b69cebbb1d9ffbb.tar.gz
emacs-cebf8ec6d91c0199eed87a182b69cebbb1d9ffbb.zip
Make vc-revert change VC state from 'added to 'unregistered.
* vc-git.el (vc-git-revert): Call git reset first.
Diffstat (limited to 'lisp/vc-git.el')
-rw-r--r--lisp/vc-git.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index a33a0f51d7d..f44679d4333 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -535,7 +535,8 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
535 "Revert FILE to the version stored in the git repository." 535 "Revert FILE to the version stored in the git repository."
536 (if contents-done 536 (if contents-done
537 (vc-git-command nil 0 file "update-index" "--") 537 (vc-git-command nil 0 file "update-index" "--")
538 (vc-git-command nil 0 file "checkout" "HEAD"))) 538 (vc-git-command nil 0 file "reset" "-q" "--")
539 (vc-git-command nil nil file "checkout" "-q" "--")))
539 540
540;;; HISTORY FUNCTIONS 541;;; HISTORY FUNCTIONS
541 542