# Feature request: Configurable branch colors in git status --short --branch

2 messages from 2017-04-15 to 2017-04-16. Participants: Stephen Kent, Jeff King.
Thread: https://gitlist.dev/t/45703

## Stephen Kent, 2017-04-15 20:00

Subject: Feature request: Configurable branch colors in git status --short --branch
Message-ID: <201704555989224.827bd36f789cd969c3667696308d4@localhost>
URL: https://gitlist.dev/e/201704555989224.827bd36f789cd969c3667696308d4%40localhost

```
It would be nice if the branch, remote tracking branch, and branch 
commit comparison count colors in git status --short --branch were 
configurable like the other git status colors.

Example command output:

$ git status --short --branch
## master...origin/master [ahead 1]
M  README.md
M  wrapper.c
 M ws.c
 M wt-status.c

In the above example, "master", "origin/master", and "1" (in "ahead 1") 
use git's standard red and green colors. I have configured the staged 
and unstaged modification markers (the M's) to use brighter green and 
red, and I would like to configure the branch info to also use those 
brighter colors. However, there is currently no option (color slot for 
git status in git config) to change the branch colors in 
git status --short --branch.

(See the attached screenshot or http://i.imgur.com/evqgaRd.png to see 
the colors I am talking about.)

Stephen

```

## Jeff King, 2017-04-16 06:44

Subject: Re: Feature request: Configurable branch colors in git status --short --branch
Message-ID: <20170416064416.mzspd5ix2ynvwqnk@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20170416064416.mzspd5ix2ynvwqnk%40sigill.intra.peff.net
In-Reply-To: <201704555989224.827bd36f789cd969c3667696308d4@localhost>

```
On Sat, Apr 15, 2017 at 01:00:51PM -0700, Stephen Kent wrote:

> It would be nice if the branch, remote tracking branch, and branch commit
> comparison count colors in git status --short --branch were configurable
> like the other git status colors.

That seems like a reasonable thing to want.

I think the infrastructure is all there, and it would just need an
update to builtin/commit.c:parse_status_slot() to map the color.status.*
names into the {LOCAL,REMOTE}_BRANCH enum values.

Want to try your hand at a patch?

-Peff

```
