diff options
author | Richard Hansen <rhansen@bbn.com> | 2015-01-06 20:22:26 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-07 10:27:53 -0800 |
commit | 76b43094007824e9b487302c87d77779deb4a295 (patch) | |
tree | 8454f86383115e6bfb11360dc32e00db15ee6a8c /t | |
parent | c5b9256360b06efb9453c1627b78b14598e288b8 (diff) | |
download | git-76b43094007824e9b487302c87d77779deb4a295.tar.gz |
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>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions