From: Junio C Hamano Date: Tue, 14 Oct 2008 22:20:45 GMT Subject: Re: Problem with CRLF line endings and colored diff Message-ID: <7v4p3e7r9e.fsf@gitster.siamese.dyndns.org> In-Reply-To: <48F50B97.9090106@gmx.ch> Jean-Luc Herren writes: > + > line2 This is expected and deliberate, as you haven't told about your desire to consider carriage-returns not as line termination letter. By default CR is just one of the whitespace letters, and colored diff output is reminding you that you introduced a line with a trailing whitespace. Check git-config(1) and look for "core.whitespace", paying special attention to "cr-at-eol".