Homepage
Recent Changes
Search:
History of 2021-10-11 Highlighting word differences when diffing
2021-10-11
16:35 UTC
Revision 1
. . . .
mbork
–
I have a short tip for today. Sometimes it is useful to diff two files (in terminal), highlighting the differences on the level of words. Apparently, GNU diff cannot do that – but Git can. Did you know that you can say git diff –word-diff=color <file1> <file2> even outside any Git repo?