Skip to content

Commit 1092cd6

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 776d6fb commit 1092cd6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/diff-highlight/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ following in your git configuration:
5858
diff = diff-highlight | less
5959
---------------------------------------------
6060

61+
If you use the interactive patch mode of `git add -p`, `git checkout
62+
-p`, etc, you may also want to configure it to be used there:
63+
64+
---------------------------------------------
65+
[interactive]
66+
diffFilter = diff-highlight
67+
---------------------------------------------
68+
6169

6270
Color Config
6371
------------

0 commit comments

Comments
 (0)