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

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

[elpa] master 4ad3ca9 4/7: don't assume vc-git-diff-switches is defined


From: Dmitry Gutov
Subject: [elpa] master 4ad3ca9 4/7: don't assume vc-git-diff-switches is defined
Date: Thu, 23 Jun 2016 01:18:25 +0000 (UTC)

branch: master
commit 4ad3ca961587402953ef85abc56daec2c604d365
Author: Jonathan Kotta <address@hidden>
Commit: Jonathan Kotta <address@hidden>

    don't assume vc-git-diff-switches is defined
---
 diff-hl.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/diff-hl.el b/diff-hl.el
index c52bf0e..017e5ca 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -213,7 +213,8 @@
           ;; https://github.com/dgutov/diff-hl/issues/67
           (cons "-U0"
                 ;; https://github.com/dgutov/diff-hl/issues/9
-                (and (listp vc-git-diff-switches)
+                (and (boundp 'vc-git-diff-switches)
+                     (listp vc-git-diff-switches)
                      (cl-remove-if-not
                       (lambda (arg)
                         (member arg '("--histogram" "--patience" "--minimal")))



reply via email to

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