Merge branch 'tf/prompt-preserve-exit-status'
commit9920c718254d946e685ef1295ff9ea0c14bac9cf
authorJunio C Hamano <gitster@pobox.com>
Wed, 14 Jan 2015 20:35:48 +0000 (14 12:35 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jan 2015 20:35:49 +0000 (14 12:35 -0800)
treea0deed91f07bfb9532f5f91a52199f9a5d838ff8
parente1ef7d177c3fcfdd25df9c4b67d36012bedebd74
parent6babe76496db332d589c1a2e0a2344fe41ca1dd5
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 $? in all cases
contrib/completion/git-prompt.sh