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

Re: [PATCH] Colourise git-branch output

From
Junio C Hamano <junkio@cox.net>
Date
Dec 12, 2006, 18:43 UTC
Message-ID
<7vk60xuf8h.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200612121103.31110.andyparkins@gmail.com>
Andy Parkins <andyparkins@gmail.com> writes:
Show 6 quoted lines
>> +	"",		/* LOCAL (normal) */
>> +	"\033[32m",	/* CURRENT (green) */
>
> In keeping with the "don't use green" idea - can I suggest just bold normal 
> for the CURRENT?  That way there is the most minimal use of colour for the 
> default git-branch output, but still retaining a visual indicator.
I do not have strong preference either way.

The CURRENT is highlighted with '*' so I think we certainly can lose green and even go vanilla. I only tried to avoid bold because no built-in default coloring currently use it, and in the past I've worked with terminals that do not have enough contrast between normal and bold and for some people that might become an issue.

Previous: Andy ParkinsNext: Junio C Hamano
Message 5 of 6 in “Colourise git-branch output”
  1. Colourise git-branch outputAndy Parkins, Dec 12, 2006
  2. Johannes SixtDec 12, 2006
  3. Junio C HamanoDec 12, 2006
  4. Andy ParkinsDec 12, 2006
  5. Junio C HamanoDec 12, 2006
  6. Junio C HamanoDec 12, 2006

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.