Commit 68159bc5 authored by Glenn Morris's avatar Glenn Morris
Browse files

(vc-git-diff): No need to duplicate vc-switches logic.

parent 1e262c45
......@@ -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")
(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)
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