t7061: status --ignored should search untracked dirs
commit0a81d4a55917514091727696a09ac649d03b57ff
authorSamuel Lijin <sxlijin@gmail.com>
Thu, 18 May 2017 08:21:50 +0000 (18 04:21 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 May 2017 03:06:52 +0000 (22 12:06 +0900)
treedc226c147c470fb2719634fa63456396e38f5aeb
parentb3487ccc0bffc28e134333b164d0d84fdd15d9f4
t7061: status --ignored should search untracked dirs

Per eb8c5b87, `status --ignored` by design does not list ignored files
if they are in a directory which contains only ignored and untracked
files (which is itself considered to be untracked) without `-uall`. This
does not make sense for `--ignored`, which claims to "Show ignored files
as well."

Thus we revisit eb8c5b87 and decide that for such directories, `status
--ignored` will list the directory as untracked *and* list all ignored
files within said directory even without `-uall`.

Signed-off-by: Samuel Lijin <sxlijin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7061-wtstatus-ignore.sh