@@ -22,23 +22,42 @@ The notable options are:
22
22
23
23
`flags`::
24
24
25
- A bit-field of options (the `*IGNORED*` flags are mutually exclusive) :
25
+ A bit-field of options:
26
26
27
27
`DIR_SHOW_IGNORED`:::
28
28
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`.
30
32
31
33
`DIR_SHOW_IGNORED_TOO`:::
32
34
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`.
35
39
36
40
`DIR_KEEP_UNTRACKED_CONTENTS`:::
37
41
38
42
Only has meaning if `DIR_SHOW_IGNORED_TOO` is also set; if this is set, the
39
43
untracked contents of untracked directories are also returned in
40
44
`entries[]`.
41
45
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
+
42
61
`DIR_COLLECT_IGNORED`:::
43
62
44
63
Special mode for git-add. Return ignored files in `ignored[]` and
0 commit comments