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

Re: [ANNOUNCE] Git v2.3.0-rc0

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jan 20, 2015, 21:49 UTC
Message-ID
<CACBZZX5s1rZ3exktbisseJSjF8-0=8ByMpBpARy6h+=iP7wEyA@mail.gmail.com>
In-Reply-To
<xmqqmw5n5z8i.fsf@gitster.dls.corp.google.com>
On Tue, Jan 13, 2015 at 12:57 AM, Junio C Hamano <gitster@pobox.com> wrote:
> An early preview release Git v2.3.0-rc0 is now available for
> testing at the usual places.
[...]
> Jeff King (38):
[...]
>       parse_color: refactor color storage
[...]

I've had this in my .gitconfig since 2010 which was broken by Jeff's v2.1.3-24-g695d95d:

    ;; Don't be so invasive about coloring ^M when I'm editing files
that
    ;; are supposed to have \r\n.
    [color "diff"]
       whitespace = 0
To test this replace \n with \r\n in a file. Before this patch you could do:
    git -c color.diff.whitespace=0 show
And just get:
    [red]-[/red]
    [green]+[/green]
As opposed to:
    git -c color.diff.whitespace=1 show
Which gives you:
    [red]-
    [green]+[/green][red]^M[/red]
Now that just produces:
    error: invalid color value: 0
    fatal: bad config variable 'color.diff.whitespace' in file
'/home/avar/.gitconfig' at line 16

Maybe breaking this is OK (but I can't find what the replacement is), but the config or the the changelog doesn't mention breaking existing config settings.

Previous: Christian NeukirchenNext: Jeff King
Message 3 of 7 in “[ANNOUNCE] Git v2.3.0-rc0”
  1. Junio C HamanoJan 12, 2015
  2. Christian NeukirchenJan 14, 2015
  3. Ævar Arnfjörð BjarmasonJan 20, 2015
  4. parse_color: fix return value for numeric color values 0-8Jeff King, Jan 20, 2015
  5. Junio C HamanoJan 20, 2015
  6. Jeff KingJan 21, 2015
  7. Junio C HamanoJan 21, 2015

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.