branch: externals/diff-hl commit 830b05253ba8f35b80448e5de2201aecb6943840 Author: Dmitry Gutov <dmi...@gutov.dev> Commit: Dmitry Gutov <dmi...@gutov.dev>
diff-hl-diff-goto-hunk-1: Honor the recently added vc-allow-async-diff --- diff-hl.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/diff-hl.el b/diff-hl.el index d8b9c2f486..cdfc31d7ca 100644 --- a/diff-hl.el +++ b/diff-hl.el @@ -589,7 +589,11 @@ It can be a relative expression as well, such as \"HEAD^\" with Git, or (let ((revs (diff-hl-diff-read-revisions rev1))) (setq rev1 (car revs) rev2 (cdr revs)))) - (vc-diff-internal t (vc-deduce-fileset) rev1 rev2 t) + (vc-diff-internal + (if (boundp 'vc-allow-async-diff) + vc-allow-async-diff + t) + (vc-deduce-fileset) rev1 rev2 t) (vc-run-delayed (if (< (line-number-at-pos (point-max)) 3) (with-current-buffer buffer (diff-hl-remove-overlays)) (when (or (not rev2) diff-hl-goto-hunk-old-revisions)