Given a file with a single word changed, a "normal" git diff
looks like this:
Whereas a git diff --word-diff=color
looks like this:
Is it possible to combine the two to get separate lines with the changed words highlighted? Something like this:
It might be trivial, but I couldn't figure it out.
The links in the comments shows ways to use extensions and 3rd party to do it.
There is a simple way by adding colors in your git config file. for example
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = magenta green
Of course you can set any supported color to your needs.