@@ -22,23 +22,42 @@ The notable options are:
2222
2323`flags`::
2424
25- A bit-field of options (the `*IGNORED*` flags are mutually exclusive) :
25+ A bit-field of options:
2626
2727`DIR_SHOW_IGNORED`:::
2828
29- Return just ignored files in `entries[]`, not untracked files.
29+ Return just ignored files in `entries[]`, not untracked
30+ files. This flag is mutually exclusive with
31+ `DIR_SHOW_IGNORED_TOO`.
3032
3133`DIR_SHOW_IGNORED_TOO`:::
3234
33- Similar to `DIR_SHOW_IGNORED`, but return ignored files in `ignored[]`
34- in addition to untracked files in `entries[]`.
35+ Similar to `DIR_SHOW_IGNORED`, but return ignored files in
36+ `ignored[]` in addition to untracked files in
37+ `entries[]`. This flag is mutually exclusive with
38+ `DIR_SHOW_IGNORED`.
3539
3640`DIR_KEEP_UNTRACKED_CONTENTS`:::
3741
3842 Only has meaning if `DIR_SHOW_IGNORED_TOO` is also set; if this is set, the
3943 untracked contents of untracked directories are also returned in
4044 `entries[]`.
4145
46+ `DIR_SHOW_IGNORED_TOO_MODE_MATCHING`:::
47+
48+ Only has meaning if `DIR_SHOW_IGNORED_TOO` is also set; if
49+ this is set, returns ignored files and directories that match
50+ an exclude pattern. If a directory matches an exclude pattern,
51+ then the directory is returned and the contained paths are
52+ not. A directory that does not match an exclude pattern will
53+ not be returned even if all of its contents are ignored. In
54+ this case, the contents are returned as individual entries.
55+ +
56+ If this is set, files and directories that explicity match an ignore
57+ pattern are reported. Implicity ignored directories (directories that
58+ do not match an ignore pattern, but whose contents are all ignored)
59+ are not reported, instead all of the contents are reported.
60+
4261`DIR_COLLECT_IGNORED`:::
4362
4463 Special mode for git-add. Return ignored files in `ignored[]` and
0 commit comments