X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/7a2da552222973bd00f7d39c4095f7e6353430e3..16db967b0577c376f29e0d72cef8aa2e3a5a84f0:/packages/diff-hl/diff-hl.el diff --git a/packages/diff-hl/diff-hl.el b/packages/diff-hl/diff-hl.el index 2aaabd431..6650818ce 100644 --- a/packages/diff-hl/diff-hl.el +++ b/packages/diff-hl/diff-hl.el @@ -5,7 +5,7 @@ ;; Author: Dmitry Gutov ;; URL: https://github.com/dgutov/diff-hl ;; Keywords: vc, diff -;; Version: 1.8.3 +;; Version: 1.8.4 ;; Package-Requires: ((cl-lib "0.2")) ;; This file is part of GNU Emacs. @@ -209,7 +209,16 @@ (defvar vc-svn-diff-switches) (defmacro diff-hl-with-diff-switches (body) - `(let ((vc-git-diff-switches nil) + `(let ((vc-git-diff-switches + ;; https://github.com/dgutov/diff-hl/issues/67 + (cons "-U0" + ;; https://github.com/dgutov/diff-hl/issues/9 + (and (boundp 'vc-git-diff-switches) + (listp vc-git-diff-switches) + (cl-remove-if-not + (lambda (arg) + (member arg '("--histogram" "--patience" "--minimal"))) + vc-git-diff-switches)))) (vc-hg-diff-switches nil) (vc-svn-diff-switches nil) (vc-diff-switches '("-U0"))