emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master be82976 1/7: Bind vc-git-diff-switches


From: Dmitry Gutov
Subject: [elpa] master be82976 1/7: Bind vc-git-diff-switches
Date: Thu, 23 Jun 2016 01:18:24 +0000 (UTC)

branch: master
commit be82976af861e0b74ab71c7d2ab088a4b38abe75
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]