mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
Make vc-revert change VC state from 'added to 'unregistered.
* vc-git.el (vc-git-revert): Call git reset first.
This commit is contained in:
parent
238a0f3a0d
commit
cebf8ec6d9
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue