Subject: Re: Bug: Problem with CRLF line ending in git-diff with coloring

From: Johannes Sixt <[email-masked]>
Date: Sun, 09 Feb 2014 19:30:46 +0100

Am 09.02.2014 12:01, schrieb Stefan-W. Hahn:
> Good morning,
> 
> when diffing output where files have CRLF line ending, the coloring
> seems wrong, because in changed lines the CR (^M) is highlighted,
> even if the line ending has not changed.
...
> If WS_CR_AT_EOL is set in ecbdata->ws_rule, it works correctly, but this seems
> not the right solutions.

It's the right solution. IOW, you should place something like this in
your .gitattributes:

  *.html whitespace=cr-at-eol

-- Hannes