changeset 100056:961732603114

(vc-git-diff): No need to duplicate vc-switches logic.
author Glenn Morris <rgm@gnu.org>
date Sun, 30 Nov 2008 01:44:33 +0000
parents 40edc7692997
children 9ab9afca4464
files lisp/vc-git.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc-git.el	Sun Nov 30 01:28:01 2008 +0000
+++ b/lisp/vc-git.el	Sun Nov 30 01:44:33 2008 +0000
@@ -518,7 +518,7 @@
   (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)