summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc-git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index f024144bb67..099c79a066f 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -518,7 +518,7 @@ or BRANCH^ (where \"^\" can be repeated)."
(apply #'vc-git-command (or buffer "*vc-diff*") 1 files
(if (and rev1 rev2) "diff-tree" "diff-index")
"--exit-code"
- (append (vc-switches (if vc-git-diff-switches 'git) 'diff)
+ (append (vc-switches 'git 'diff)
(list "-p" (or rev1 "HEAD") rev2 "--"))))
(defun vc-git-revision-table (files)