From: Junio C Hamano <gitster@pobox.com>
To: Jean-Luc Herren <jlh@gmx.ch>
Cc: Git List <git@vger.kernel.org>
Subject: Re: Problem with CRLF line endings and colored diff
Date: Tue, 14 Oct 2008 15:20:45 -0700 [thread overview]
Message-ID: <7v4p3e7r9e.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <48F50B97.9090106@gmx.ch> (Jean-Luc Herren's message of "Tue, 14 Oct 2008 23:13:59 +0200")
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.
Check git-config(1) and look for "core.whitespace", paying special
attention to "cr-at-eol".
next prev parent reply other threads:[~2008-10-14 22:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 21:13 Problem with CRLF line endings and colored diff Jean-Luc Herren
2008-10-14 22:20 ` Junio C Hamano [this message]
2008-10-14 23:08 ` Jean-Luc Herren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v4p3e7r9e.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jlh@gmx.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).