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

Re: question: how to ignore extral CR when diff dos format files with 'color=auto'

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 27, 2008, 04:54 UTC
Message-ID
<7v63pnt5us.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1219728743111-783231.post@n2.nabble.com>
goooguo <erwangg@fortemedia.com.cn> writes:
> git-diff prints "^M" at each end of line for dos format files when
> 'color=auto'.
>
> it's annoying!
"man git-config" and learn about core.whitespace perhaps?
Previous: goooguoNext: goooguo
Message 3 of 6 in “question: how to ignore extral CR when diff dos format files with 'color=auto'”
  1. goooguoAug 26, 2008
  2. goooguoAug 27, 2008
  3. Junio C HamanoAug 27, 2008
  4. goooguoAug 28, 2008
  5. Junio C HamanoAug 28, 2008
  6. Junio C HamanoAug 28, 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.