mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-02 11:21:42 +00:00
(vc-git-diff): No need to duplicate vc-switches logic.
This commit is contained in:
parent
1e262c4566
commit
68159bc533
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user