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

Re: [PATCH] git-config --get-color: get configured color

From
DZDan Zwell <dzwell@gmail.com>
Date
Nov 28, 2007, 07:58 UTC
Message-ID
<474D1FC3.50108@zwell.net>
In-Reply-To
<7vir3mal9u.fsf_-_@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
Show 6 quoted lines
> +--get-color name default::
> +
> +	Find the color configured for `name` (e.g. `color.diff.new`) and
> +	output it as the ANSI color escape sequence to the standard
> +	output.  The optional `default` parameter is used if the
> +	configuration for `name` is missing.

Perhaps you could mention here that the second parameter is a normal string, not an ansi code? Just adding 'for example, "blue"' would probably help.

 > +RESET==$(git config --get-color "" "reset")

This is a typo, no? +RESET=$(git config --get-color "" "reset")

Dan
Previous: Junio C Hamano
Message 6 of 6 in “Add config_int() method to the Git perl module”
  1. Add config_int() method to the Git perl moduleJakub Narebski, Nov 23, 2007
  2. Junio C HamanoNov 23, 2007
  3. Wincent ColaiutaNov 23, 2007
  4. Jeff KingNov 24, 2007
  5. git-config --get-color: get configured colorJunio C Hamano, Nov 28, 2007
  6. Dan ZwellNov 28, 2007

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.