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

Re: [PATCH] diff: fix coloring of extended diff headers

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
May 9, 2010, 18:43 UTC
Message-ID
<AANLkTilFfkadPZd56OSGr1yDLVeSQ_G2jOxga1dK5NBD@mail.gmail.com>
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:
Show 13 quoted lines
> 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

Previous: Bert Wesarg
Message 2 of 2 in “diff: fix coloring of extended diff headers”
  1. diff: fix coloring of extended diff headersBert Wesarg, May 3, 2010
  2. Bert WesargMay 9, 2010

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.