Commit cebf8ec6 authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

Make vc-revert change VC state from 'added to 'unregistered.

* vc-git.el (vc-git-revert): Call git reset first.
parent 238a0f3a
2009-12-06 Dan Nicolaescu <dann@ics.uci.edu>
Make vc-revert change VC state from 'added to 'unregistered.
* vc-git.el (vc-git-revert): Call git reset first.
2009-12-06 Ulf Jasper <ulf.jasper@web.de>
* net/newst-backend.el :
......
......@@ -535,7 +535,8 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
"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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment