When I have a change in a file that consists only of a single very long line, can git diff
output only the part of the line that changed?
I know that git diff --word-diff
will highlight in color only the parts that have changed, but it will still output the full line.
Is there an option to only output the part of the line that has changed? Or perhaps a grep pattern that could match only the colored parts of git diff --word-diff
?