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 11, 2006, 22:47 UTC
Message-ID
<7vbqma1251.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200612112210.08327.andyparkins@gmail.com>
Andy Parkins <andyparkins@gmail.com> writes:
Show 5 quoted lines
> I wanted to have a visual indication of which branches are
> local and which are remote in git-branch -a output; however
> Junio was concerned that someone might be using the output in
> a script.  This patch addresses the problem by colouring the
> git-branch output - which in "auto" mode won't be activated.
Hmm.

"git branch --color" does not seem to work, so is this config only?

> As yet, there is no support for changing the colors using the
> config file; but it wouldn't be hard to add.
I am not sure about that.  Would it be something like this?
	[branch.color]
        	remote = purple
                local = yellow

I wonder what would happen when you have a branch called "color". Would the above cause "git-fetch" to fetch from "purple" remote by default?

Previous: Andy ParkinsNext: Sean
Message 2 of 9 in “Colourise git-branch output”
  1. Colourise git-branch outputAndy Parkins, Dec 11, 2006
  2. Junio C HamanoDec 11, 2006
  3. SeanDec 12, 2006
  4. Junio C HamanoDec 12, 2006
  5. SeanDec 12, 2006
  6. Linus TorvaldsDec 12, 2006
  7. Junio C HamanoDec 12, 2006
  8. Linus TorvaldsDec 12, 2006
  9. 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.