branch: master
commit be82976af861e0b74ab71c7d2ab088a4b38abe75
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
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 2aaabd4..106a487 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"))