dir.c: git-status --ignored: don't scan the work tree three times