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

Re: [PATCH] Add config_int() method to the Git perl module

From
Jeff King <peff@peff.net>
Date
Nov 24, 2007, 11:48 UTC
Message-ID
<20071124114839.GC17861@sigill.intra.peff.net>
In-Reply-To
<7vabp4u40y.fsf@gitster.siamese.dyndns.org>
On Fri, Nov 23, 2007 at 11:59:25AM -0800, Junio C Hamano wrote:
> Maybe in a similar way, we might want to add --color to "git
> config" to return ANSI sequence, so that Git::config_color() can
> work without even loading Term::ANSIColor?

We would also need a way of parsing the 'default' values, so git-config would need a way of saying "turn this value into its internal representation" (or the perl script would have to specify its defaults as raw ANSI codes, which is a bit ugly, but is that the C programs do).

-Peff
Previous: Wincent ColaiutaNext: Junio C Hamano
Message 4 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.