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 = yellowI wonder what would happen when you have a branch called "color". Would the above cause "git-fetch" to fetch from "purple" remote by default?