aboutsummaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorAndy Parkins <andyparkins@gmail.com>2006-12-12 06:41:52 +0000
committerJunio C Hamano <junkio@cox.net>2006-12-12 00:56:25 -0800
commita1158caeadec4d48b185068f4120d85423de5970 (patch)
tree4a058582dde034ca8145999660f3b4f9c189b453 /unpack-trees.c
parent6f9872582246b9b8ee4bdc9f6a563b409aab1ecb (diff)
downloadgit-a1158caeadec4d48b185068f4120d85423de5970.tar.gz
git-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 'unpack-trees.c')
0 files changed, 0 insertions, 0 deletions