From 42c3da7c3860f036ce09eb41c3d730e1ed1b4b83 Mon Sep 17 00:00:00 2001 From: Jordan Atwood Date: Thu, 22 Dec 2022 15:40:46 -0800 Subject: [PATCH] Add improved interactive git diff highlights --- src/.gitconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/.gitconfig b/src/.gitconfig index ae822ee..e1d6d86 100644 --- a/src/.gitconfig +++ b/src/.gitconfig @@ -61,6 +61,12 @@ [include] # Define system-specific user configs such as GPG signing key path = ~/.user.gitconfig +[interactive] + # Build or install `diff-highlight` to some $PATH present location for + # improved interactive diff highlights. Falls back on plain `core.pager` if + # not present. + # See: https://git.kernel.org/pub/scm/git/git.git/tree/contrib/diff-highlight/README + diffFilter = ((type diff-highlight >/dev/null 2>&1 && diff-highlight) || $(git config core.pager)) [log] follow = true [pager]