How to improve git's diff highlighting? : <p>The output of <code>git diff</code> is optimized for code which tends to be one statement per line whereas text can (if authors like me are too lazy to use line breaks) cause diff output which is very hard to read and more of a "Where's Wally?" search than reading diff output</p>

<p><a href="https://i.stack.imgur.com/R4yLk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/R4yLk.png" alt="enter image description here"></a></p>

<p>whereas highlighting as done on GitLab's or GitHub's web frontend shows the difference immediately</p>

<p><a href="https://i.stack.imgur.com/kPZRP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kPZRP.png" alt="enter image description here"></a></p>

<p>I'm aware that I'm comparing HTML and plain text (apples and oranges), however it should be possible to improve the <code>git diff</code> output by using different colors or adding marker characters around a change (JUnit uses <code>[]</code> around insertions which isn't great to read, but an example for what I mean) and it would be the first time that there's something I expect to be somewhere available in git that actually was not.</p>
