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

Re: [PATCH] format_commit_message: honor `color=auto` for `%C(auto)`

From
Junio C Hamano <gitster@pobox.com>
Date
May 25, 2016, 00:55 UTC
Message-ID
<CAPc5daV4Z0gvaOL1H-v-G7RepGyiuir_AnzNx32aM3j2pm0RGw@mail.gmail.com>
In-Reply-To
<20160524194814.GA12479@zoidberg>

On Tue, May 24, 2016 at 12:48 PM, Edward Thomson <ethomson@edwardthomson.com> wrote:

Show 13 quoted lines
> Check that we are configured to display colors in the given context when
> the user specifies a format string of `%C(auto)`, instead of always
> displaying the default color for the given context.  This makes
> `%C(auto)` obey the `color=auto` setting and brings its behavior in line
> with the behavior of `%C(auto,<colorname>)`.
>
> This allows the user the ability to specify that color should be
> displayed for a string only when the output is a tty, and to use the
> default color for the given context without having to hardcode a
> color value.
> ---
>  pretty.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks obviously the right thing to do from a cursory read. Missing sign-off?

Thanks.
Previous: Edward ThomsonNext: Edward Thomson
Message 2 of 3 in “format_commit_message: honor `color=auto` for `%C(auto)`”
  1. format_commit_message: honor `color=auto` for `%C(auto)`Edward Thomson, May 24, 2016
  2. Junio C HamanoMay 25, 2016
  3. Edward ThomsonMay 25, 2016

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.