Re: [PATCH v4 4/6] dir: hide untracked contents of untracked dirs

2017-05-21 Thread Junio C Hamano
Samuel Lijin writes: > + > + /* if DIR_SHOW_IGNORED_TOO, read_directory_recursive() will also pick > + * up untracked contents of untracked dirs; by default we discard these, > + * but given DIR_KEEP_UNTRACKED_CONTENTS we do not > + */ No need to resend

[PATCH v4 4/6] dir: hide untracked contents of untracked dirs

2017-05-18 Thread Samuel Lijin
When we taught read_directory_recursive() to recurse into untracked directories in search of ignored files given DIR_SHOW_IGNORED_TOO, that had the side effect of teaching it to collect the untracked contents of untracked directories. It doesn't always make sense to return these, though (we do