]> code.delx.au - gnu-emacs-elpa/commitdiff
don't assume vc-git-diff-switches is defined
authorJonathan Kotta <jpkotta@packetdigital.com>
Tue, 17 May 2016 22:27:42 +0000 (17:27 -0500)
committerJonathan Kotta <jpkotta@packetdigital.com>
Tue, 17 May 2016 22:27:42 +0000 (17:27 -0500)
diff-hl.el

index c52bf0e2a3f43aac5737d6f31983e3b44ec0e422..017e5ca590ccb97e389b52acbd50f9863b509a93 100644 (file)
           ;; 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")))