git-prompt.sh: if pc mode, immediately set PS1 to a plain prompt
commit76b43094007824e9b487302c87d77779deb4a295
authorRichard Hansen <rhansen@bbn.com>
Wed, 7 Jan 2015 01:22:26 +0000 (6 20:22 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Jan 2015 18:27:53 +0000 (7 10:27 -0800)
tree8454f86383115e6bfb11360dc32e00db15ee6a8c
parentc5b9256360b06efb9453c1627b78b14598e288b8
git-prompt.sh: if pc mode, immediately set PS1 to a plain prompt

At the beginning of __git_ps1, right after determining that the
function is running in pc mode, set PS1 to a plain (undecorated)
prompt.  This makes it possible to simply return early without having
to set PS1 if the prompt should not be decorated.

Signed-off-by: Richard Hansen <rhansen@bbn.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-prompt.sh