aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-11-30 01:44:33 +0000
committerGlenn Morris2008-11-30 01:44:33 +0000
commit68159bc533ea545002760c281ecbb50c5e16f0d3 (patch)
tree3aaf9a5694df015eec54fb4f829d439bf9d388b6
parent1e262c45664220c2cccf75d7b421edab11cab076 (diff)
downloademacs-68159bc533ea545002760c281ecbb50c5e16f0d3.tar.gz
emacs-68159bc533ea545002760c281ecbb50c5e16f0d3.zip
(vc-git-diff): No need to duplicate vc-switches logic.
-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)."
518 (apply #'vc-git-command (or buffer "*vc-diff*") 1 files 518 (apply #'vc-git-command (or buffer "*vc-diff*") 1 files
519 (if (and rev1 rev2) "diff-tree" "diff-index") 519 (if (and rev1 rev2) "diff-tree" "diff-index")
520 "--exit-code" 520 "--exit-code"
521 (append (vc-switches (if vc-git-diff-switches 'git) 'diff) 521 (append (vc-switches 'git 'diff)
522 (list "-p" (or rev1 "HEAD") rev2 "--")))) 522 (list "-p" (or rev1 "HEAD") rev2 "--"))))
523 523
524(defun vc-git-revision-table (files) 524(defun vc-git-revision-table (files)