From: Glenn Morris Date: Sun, 30 Nov 2008 01:44:33 +0000 (+0000) Subject: (vc-git-diff): No need to duplicate vc-switches logic. X-Git-Tag: emacs-pretest-23.0.90~1423 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=68159bc533ea545002760c281ecbb50c5e16f0d3;p=emacs.git (vc-git-diff): No need to duplicate vc-switches logic. --- 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)