From: Bert Wesarg <bert.wesarg@googlemail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] diff: fix coloring of extended diff headers
Date: Sun, 9 May 2010 20:43:07 +0200 [thread overview]
Message-ID: <AANLkTilFfkadPZd56OSGr1yDLVeSQ_G2jOxga1dK5NBD@mail.gmail.com> (raw)
In-Reply-To: <591c96c90ca049400a8c0df70f8b44061aeacba5.1272926169.git.bert.wesarg@googlemail.com>
On Tue, May 4, 2010 at 00:38, Bert Wesarg <bert.wesarg@googlemail.com> wrote:
> Coloring the extended headers where done as a whole not per line. less with
> option -R (which is the default from git) does not support this coloring
> mode because of performance reasons. The -r option would be an alternative
> but has problems with lines that are longer than the screen. Therefore
> stick to the idiom to color each line separately. The problem is, that the
> result of ill_metainfo() will also be used as an parameter to an external
> diff driver, so we need to disable coloring in this case.
>
> Because coloring is now done inside fill_metainfo() we can simply add this
> string to the diff header and therefore keep the last newline in the
> extended header. This results also into the fact that the external diff
> driver now gets this last newline too. Which is a change in behavior
> but a good one.
Ping.
Regards,
Bert
prev parent reply other threads:[~2010-05-09 18:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-03 22:38 [PATCH] diff: fix coloring of extended diff headers Bert Wesarg
2010-05-09 18:43 ` Bert Wesarg [this message]
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=AANLkTilFfkadPZd56OSGr1yDLVeSQ_G2jOxga1dK5NBD@mail.gmail.com \
--to=bert.wesarg@googlemail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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).