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

Re: Colorize output

From
John Keeping <john@keeping.me.uk>
Date
Nov 7, 2013, 18:32 UTC
Message-ID
<20131107183248.GO24023@serenity.lan>
In-Reply-To
<527BD783.7080606@homecomputing.fr>
On Thu, Nov 07, 2013 at 07:10:11PM +0100, Nicolas wrote:
Show 5 quoted lines
> I’m developping a git command in shell and I would like colorize the output.
> 
> I don’t find anything in git-sh-setup.
> 
> What is the best way for don’t reinvent the wheel?

I normally use "git config --get-color ..." either with standard colors if my command is close to a standard command or with my own config keys and sensible defaults.

Previous: Nicolas
Message 2 of 2 in “Colorize output”
  1. NicolasNov 7, 2013
  2. John KeepingNov 7, 2013

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.