Merge branch 'so/prompt-command'
commit5471fb1c4ca09c8a9e1ecb8d8caee80959bc081c
authorJunio C Hamano <gitster@pobox.com>
Wed, 21 Nov 2012 21:17:01 +0000 (21 13:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Nov 2012 21:17:01 +0000 (21 13:17 -0800)
tree4888872845b580a50312ce291c13e633220a677f
parent2739889c98e8d1c1a40263f7f7c0866879c31edf
parent76c36c02ff3fe1571051ce9278248bd269f8341b
Merge branch 'so/prompt-command'

Updates __git_ps1 so that it can be used as $PROMPT_COMMAND,
instead of being used for command substitution in $PS1, to embed
color escape sequences in its output.

* so/prompt-command:
  coloured git-prompt: paint detached HEAD marker in red
  Fix up colored git-prompt
  show color hints based on state of the git tree
  Allow __git_ps1 to be used in PROMPT_COMMAND