On Thu, Mar 26, 2020 at 12:07:55PM +0100, Sébastien BRUCKERT wrote: > # Abstract > Something that always bothered me with git diff was how trailing > spaces are represented. If I add spaces, then diff, they are > represented in the terminal by a red background. If I then remove > them, they are not represented. That's how I can have a diff with two > exact lines, and I'm looking for the diff in it, but can't find it. > Because it is the non-represented spaces. Have you tried setting diff.wsErrorHighlight? By default we only highlight whitespace problems in new lines, but it can be told to show them in old lines or in context. -Peff