git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Problem with CRLF line endings and colored diff

From
JHJean-Luc Herren <jlh@gmx.ch>
Date
Oct 14, 2008, 23:08 UTC
Message-ID
<48F52661.4010800@gmx.ch>
In-Reply-To
<7v4p3e7r9e.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
Show 8 quoted lines
> Jean-Luc Herren <jlh@gmx.ch> writes:
>>     <GREEN FOREGROUND>+<RESET><GREEN FOREGROUND>
>>     line2<RESET><RED BACKGROUND><CR><RESET><LF>
> 
> 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.

Ah, I see, I didn't know I have to tell it that I want to use CRLF... Works fine now. Sorry for the noise.

jlh
Previous: Junio C Hamano
Message 3 of 3 in “Problem with CRLF line endings and colored diff”
  1. Jean-Luc HerrenOct 14, 2008
  2. Junio C HamanoOct 14, 2008
  3. Jean-Luc HerrenOct 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.