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>
Junio C Hamano committed
Oct 17, 2012 at 00:44 UTC
76c36c02ff3fe1571051ce9278248bd269f8341b
1 file changed
+1
-1
contrib/completion/git-prompt.sh
+1
-1
@@ -335,7 +335,7 @@ __git_ps1 ()
335
local flags_color="$c_lblue"
336
local branchstring="$c${b##refs/heads/}"
337
338
- if [ $detached = yes ]; then
338
+ if [ $detached = no ]; then
339
branch_color="$ok_color"
340
else
341
branch_color="$bad_color"