* Feature request: Configurable branch colors in git status --short --branch
@ 2017-04-15 20:00 Stephen Kent
2017-04-16 6:44 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Kent @ 2017-04-15 20:00 UTC (permalink / raw)
To: git
[-- Attachment #1.1: Type: text/plain, Size: 907 bytes --]
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
[-- Attachment #1.2: git-status-short-branch.png --]
[-- Type: image/png, Size: 7273 bytes --]
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Feature request: Configurable branch colors in git status --short --branch
2017-04-15 20:00 Feature request: Configurable branch colors in git status --short --branch Stephen Kent
@ 2017-04-16 6:44 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2017-04-16 6:44 UTC (permalink / raw)
To: Stephen Kent; +Cc: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-16 6:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-15 20:00 Feature request: Configurable branch colors in git status --short --branch Stephen Kent
2017-04-16 6:44 ` Jeff King
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).