From dbb38577800955997ebbf0113b9948c301dafee6 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Wed, 4 Jul 2018 15:48:25 -0500 Subject: [PATCH] bin/diff-filter: Use local `diff-highlight` script if available --- bin/diff-filter | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/diff-filter b/bin/diff-filter index dc83358..6adbd4a 100755 --- a/bin/diff-filter +++ b/bin/diff-filter @@ -3,8 +3,10 @@ # Use `diff-highlight` if available # Look for script in several expected locations -for f in /usr/local/share/git-core/contrib/diff-highlight/diff-highlight \ - /usr/share/git-core/contrib/diff-highlight/diff-highlight +for f in \ + $HOME/bin/diff-highlight \ + /usr/local/share/git-core/contrib/diff-highlight/diff-highlight \ + /usr/share/git-core/contrib/diff-highlight/diff-highlight do test -x $f && \ tee | $f && \ -- 2.47.1