diff options
author | Andy Parkins <andyparkins@gmail.com> | 2006-12-12 06:41:52 +0000 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-12 00:56:25 -0800 |
commit | a1158caeadec4d48b185068f4120d85423de5970 (patch) | |
tree | 4a058582dde034ca8145999660f3b4f9c189b453 /t/t5100/patch0003 | |
parent | shortlog: fix segfault on empty authorname (diff) | |
download | tgif-a1158caeadec4d48b185068f4120d85423de5970.tar.xz |
Colourise git-branch output
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.
I've based it off the colouring code for builtin-diff.c; which means
there is a branch color configuration variable that needs setting to
something before the color will appear.
The colour parameter is "color.branch" rather than "branch.color" to
avoid clashing with the default namespace for default branch merge
definitions.
This patch chooses green for local, red for remote and bold green for
current.
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t5100/patch0003')
0 files changed, 0 insertions, 0 deletions