Terminate vc-disable-async-diff with extreme prejudice.
* vc/vc.el, and all backends: API cleanup; the backend diff method takes an explicit async flag. This eliminates a particularly ugly global.
This commit is contained in:
parent
4f54f7b376
commit
ed6ce56e23
13 changed files with 59 additions and 49 deletions
|
@ -984,11 +984,13 @@ or BRANCH^ (where \"^\" can be repeated)."
|
|||
|
||||
(autoload 'vc-switches "vc")
|
||||
|
||||
(defun vc-git-diff (files &optional rev1 rev2 buffer)
|
||||
(defun vc-git-diff (files &optional async rev1 rev2 buffer)
|
||||
"Get a difference report using Git between two revisions of FILES."
|
||||
(let (process-file-side-effects)
|
||||
(if vc-git-diff-switches
|
||||
(apply #'vc-git-command (or buffer "*vc-diff*") 1 files
|
||||
(apply #'vc-git-command (or buffer "*vc-diff*")
|
||||
(if async 'async 1)
|
||||
files
|
||||
(if (and rev1 rev2) "diff-tree" "diff-index")
|
||||
"--exit-code"
|
||||
(append (vc-switches 'git 'diff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue