git prompt: use toplevel to find untracked files
commit9bdc5173f0bc514d0b76165d45729622b2ad4d89
authorCody A Taylor <codemister99@yahoo.com>
Fri, 13 Mar 2015 02:24:50 +0000 (12 19:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 15 Mar 2015 21:23:22 +0000 (15 14:23 -0700)
treeda1c268253553011c696fe35e25a35a0fca5a13f
parent282616c72d1d08a77ca4fe1186cb708c38408d87
git prompt: use toplevel to find untracked files

The __git_ps1() prompt function would not show an untracked state
when all the untracked files are outside the current working
directory.

Signed-off-by: Cody A Taylor <codemister99@yahoo.com>
Helped-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-prompt.sh
t/t9903-bash-prompt.sh