Code

Show presence of stashed changes in bash prompt.
authorDaniel Trstenjak <daniel.trstenjak@online.de>
Tue, 2 Jun 2009 18:03:22 +0000 (20:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Jun 2009 05:38:17 +0000 (22:38 -0700)
commit2414b45ce0c56f7744e00e7fef3682a77375701e
tree9a8ea681ba3b35434e36edd5caec9288c4d0e2de
parentb11cf09043f18b368ec0d988f064ea21247c843d
Show presence of stashed changes in bash prompt.

Add a '$' in the __git_ps1 output to show stashed changes are present,
when GIT_PS1_SHOWSTASHSTATE is set to a nonempty value.

The code for checking if the stash has entries is taken from
'git-stash.sh'.

Signed-off-by: Daniel Trstenjak <daniel.trstenjak@online.de>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash