From: Jeff King Date: Mon, 8 Sep 2025 16:42:42 +0000 (-0400) Subject: contrib/diff-highlight: mention interactive.diffFilter X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1092cd6435642808c3e921f0c3c4a7588cc455e6;p=thirdparty%2Fgit.git contrib/diff-highlight: mention interactive.diffFilter When the README for diff-highlight was written, there was no way to trigger it for the `add -p` interactive patch mode. We've since grown a feature to support that, but it was documented only on the Git side. Let's also let people coming the other direction, from diff-highlight, know that it's an option. Suggested-by: Isaac Oscar Gariano Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/contrib/diff-highlight/README b/contrib/diff-highlight/README index d4c2343175..1db4440e68 100644 --- a/contrib/diff-highlight/README +++ b/contrib/diff-highlight/README @@ -58,6 +58,14 @@ following in your git configuration: diff = diff-highlight | less --------------------------------------------- +If you use the interactive patch mode of `git add -p`, `git checkout +-p`, etc, you may also want to configure it to be used there: + +--------------------------------------------- +[interactive] + diffFilter = diff-highlight +--------------------------------------------- + Color Config ------------