summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-10-17 07:44:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-10-17 07:44:25 (GMT)
commit76c36c02ff3fe1571051ce9278248bd269f8341b (patch)
tree014f42789a15f56715d5b0bdbc2aafdb7deaa3b8 /contrib
parent9b3aaf8bf19ce2bf5e73b972dce31430e43df8dc (diff)
downloadgit-76c36c02ff3fe1571051ce9278248bd269f8341b.zip
git-76c36c02ff3fe1571051ce9278248bd269f8341b.tar.gz
git-76c36c02ff3fe1571051ce9278248bd269f8341b.tar.bz2
coloured git-prompt: paint detached HEAD marker in red
Paint the marker for normal state in green and detached state in red, instead of the other way around. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-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 9f0b6bb..00fc099 100644
--- a/contrib/completion/git-prompt.sh
+++ b/contrib/completion/git-prompt.sh
@@ -335,7 +335,7 @@ __git_ps1 ()
local flags_color="$c_lblue"
local branchstring="$c${b##refs/heads/}"
- if [ $detached = yes ]; then
+ if [ $detached = no ]; then
branch_color="$ok_color"
else
branch_color="$bad_color"