diff options
Diffstat (limited to 'lisp/vc-git.el')
| -rw-r--r-- | lisp/vc-git.el | 3 |
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 | ||