From 4ad3ca961587402953ef85abc56daec2c604d365 Mon Sep 17 00:00:00 2001 From: Jonathan Kotta Date: Tue, 17 May 2016 17:27:42 -0500 Subject: [PATCH] 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 c52bf0e2a..017e5ca59 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"))) -- 2.39.2