bash prompt: test dirty index and worktree while on an orphan branch
commita30d11ebdf78cfd664554090ce31673b01c8fd3b
authorSZEDER Gábor <szeder@ira.uka.de>
Sat, 21 Nov 2015 11:30:07 +0000 (21 12:30 +0100)
committerJeff King <peff@peff.net>
Tue, 24 Nov 2015 20:27:01 +0000 (24 15:27 -0500)
tree2139e3da0bd750c08dd0be1ee6da844258253d1b
parentaf40944bda352190f05d22b7cb8fe88beb17f3a7
bash prompt: test dirty index and worktree while on an orphan branch

There is only a single test exercising the dirty state indicator on an
orphan branch, and in that test neither the index nor the worktree are
dirty.

Add two failing tests to check the dirty state indicator while either
the index is dirty or while both the index and the worktree are dirty
on an orphan branch, and to show that the dirtiness of the index is
not displayed in these cases (the fourth combination, i.e. clean index
and dirty worktree are impossible on an orphan branch).  Update the
existing dirty state indicator on clean orphan branch test to match
the style of the two new tests, most importantly to use 'git checkout
--orphan' instead of cd-ing into a repository that just happens to be
empty and clean.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Jeff King <peff@peff.net>
t/t9903-bash-prompt.sh