Merge branch 'so/prompt-command' into next
commit79565a1f4c626ab9ac015039fafc3311341ee582
authorJeff King <peff@peff.net>
Thu, 25 Oct 2012 11:15:27 +0000 (25 07:15 -0400)
committerJeff King <peff@peff.net>
Thu, 25 Oct 2012 11:15:27 +0000 (25 07:15 -0400)
tree09cb4a208b6b55f873026693103c4564bfdef179
parent5447367762794bd1e42a22860da8a1f57f330fea
parent76c36c02ff3fe1571051ce9278248bd269f8341b
Merge branch 'so/prompt-command' into next

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