Open skermes opened 12 years ago
I dug into this a little more, and it looks like getting a nicely colorized word-level diff is decidedly non-trivial: http://www.spinics.net/lists/git/msg145186.html
As far as I could tell, none of the solutions in that thread (with the possible exception of the perl script here: http://www.spinics.net/lists/git/msg145893.html) had a good solution, only an explication of the problems. I haven't read the script closely enough to figure out how it works, or tried running it to see the output.
That said, the thread is over a year old, so there might have been some progress. Someone mentioned a --color-words option in gitk, which could be worth looking into.
Relevant info from the man page: --word-diff[=]
Since plain is ambiguous, probably will need to use porcelain.
It looks like the ~ only accounts for newlines in both versions, or something