Merge branch 'tf/prompt-preserve-exit-status'
commit487b17de3ea1842b91a739cf31a08130faa03856
authorJunio C Hamano <gitster@pobox.com>
Wed, 7 Jan 2015 21:09:35 +0000 (7 13:09 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Jan 2015 21:09:35 +0000 (7 13:09 -0800)
tree8ed3582f2ab4003c6b01d2d75a3e9a852e80d95f
parent7938918e9ff4eb481c4bbe9132b26475da65069a
parenteb443e3b39482b3d64c1efd46de7481c3321a87a
Merge branch 'tf/prompt-preserve-exit-status'

Using the exit status of the last command in the prompt, e.g.
PS1='$(__git_ps1) $? ', did not work well because the helper
function stomped on the exit status.

* tf/prompt-preserve-exit-status:
  git-prompt: preserve value of $? inside shell prompt
contrib/completion/git-prompt.sh