From be82976af861e0b74ab71c7d2ab088a4b38abe75 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Fri, 13 May 2016 12:26:53 +0300 Subject: [PATCH] Bind vc-git-diff-switches Fixes #67, and seems to improve the performance as well. --- diff-hl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/diff-hl.el b/diff-hl.el index 2aaabd431..106a487ef 100644 --- a/diff-hl.el +++ b/diff-hl.el @@ -209,7 +209,8 @@ (defvar vc-svn-diff-switches) (defmacro diff-hl-with-diff-switches (body) - `(let ((vc-git-diff-switches nil) + ;; https://github.com/dgutov/diff-hl/issues/67 + `(let ((vc-git-diff-switches '("-U0")) (vc-hg-diff-switches nil) (vc-svn-diff-switches nil) (vc-diff-switches '("-U0")) -- 2.39.2