tests: add tests for the bash prompt functions in the completion script
commit963c0407f47f5c2c73deb67613f0ac5a0615889c
authorSZEDER Gábor <szeder@ira.uka.de>
Wed, 9 May 2012 00:44:33 +0000 (9 02:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 May 2012 21:27:37 +0000 (9 14:27 -0700)
tree760d70f9e9660ffa2cdbb159b1c6674bc0c033b1
parentf8891cfa2a16d040d799f281684851fa7b2a0c2b
tests: add tests for the bash prompt functions in the completion script

The tests cover the discovery of the '.git' directory in the
__gitdir() function in different scenarios, and the prompt itself,
i.e. branch name, detached heads, operations (rebase, merge,
cherry-pick, bisect), and status indicators (dirty, stash, untracked
files; but not the upstream status).

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9903-bash-prompt.sh [new file with mode: 0755]