Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksi Aalto <aga@iki.fi>2010-11-18 02:40:05 +0300
committerJunio C Hamano <gitster@pobox.com>2010-11-30 03:31:34 +0300
commit1d282327d7354dd3a1caefa4af06562aa816710d (patch)
tree8779a64c22934c6be78c08705576272b5276bfdf /t/t7508-status.sh
parent7d43de925b2771d295d8fc4341b7bd544e2a74fa (diff)
status: show branchname with a configurable color
You can tell "git status" to paint the name of the current branch in its output (the line that says "On branch ...") by setting the configuration variable color.status.branch; it is by default turned off. Signed-off-by: Aleksi Aalto <aga@iki.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7508-status.sh')
-rwxr-xr-xt/t7508-status.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 4de3e27950..ba36d72661 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -381,12 +381,13 @@ test_expect_success 'status --porcelain ignores relative paths setting' '
test_expect_success 'setup unique colors' '
- git config status.color.untracked blue
+ git config status.color.untracked blue &&
+ git config status.color.branch green
'
cat >expect <<\EOF
-# On branch master
+# On branch <GREEN>master<RESET>
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#