git-status: Test --ignored behavior
commiteb8c5b872ef144add4ac89f85bcddc974ac7114d
authorAntoine Pelisse <apelisse@gmail.com>
Sun, 30 Dec 2012 14:39:01 +0000 (30 15:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jan 2013 00:24:48 +0000 (1 16:24 -0800)
tree159c3b35887ebd32cb865eb251307226a528baff
parent721ac4edde75723ef8dbbb68989bda89fbf6fc66
git-status: Test --ignored behavior

Test all possible use-cases of git-status "--ignored" with the
"--untracked-files" option with values "normal" and "all":

 - An untracked directory is listed as untracked if it has a mix of
   untracked and ignored files in it.  With -uall, ignored/untracked
   files are listed as ignored/untracked.

 - An untracked directory with only ignored files is listed as
   ignored.  With -uall, all files in the directory are listed.

 - An ignored directory is listed as ignored. With -uall, all files
   in the directory are listed as ignored.

 - An ignored and committed directory is listed as ignored if it has
   untracked files.  With -uall, all untracked files in the
   directory are listed as ignored.

Signed-off-by: Antoine Pelisse <apelisse@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7061-wtstatus-ignore.sh [new file with mode: 0755]