(vc-git-diff): No need to duplicate vc-switches logic.
authorGlenn Morris <rgm@gnu.org>
Sun, 30 Nov 2008 01:44:33 +0000 (01:44 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 30 Nov 2008 01:44:33 +0000 (01:44 +0000)
lisp/vc-git.el

index f024144..099c79a 100644 (file)
@@ -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)