aboutsummaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorEduardo R. D'Avila <erdavila@gmail.com>2013-06-26 00:05:16 -0300
committerJunio C Hamano <gitster@pobox.com>2013-06-26 13:03:01 -0700
commit15981f4eec9c6a7c12b9c0fbe98e68228c46edb7 (patch)
treea7e6f5b7c00a5451059533656a057cfe92f18034 /contrib/completion
parentf3bd62d02ff189c42d404f9a0b347499e016cc23 (diff)
downloadgit-15981f4eec9c6a7c12b9c0fbe98e68228c46edb7.tar.gz
git-15981f4eec9c6a7c12b9c0fbe98e68228c46edb7.tar.xz
git-prompt.sh: do not print duplicate clean color code
Do not print a duplicate clean color code when there is no other indicators other than the current branch in colored prompt. Acked-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Eduardo R. D'Avila <erdavila@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rw-r--r--contrib/completion/git-prompt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh
index fdedb45cd..545518a4d 100644
--- a/contrib/completion/git-prompt.sh
+++ b/contrib/completion/git-prompt.sh
@@ -253,8 +253,8 @@ __git_ps1_colorize_gitstring ()
branch_color="$bad_color"
fi
c="$branch_color$c"
- b="$b$c_clear"
+ z="$c_clear$z"
if [ "$w" = "*" ]; then
w="$bad_color$w"
fi