dir: mark output only fields of dir_struct as such
While at it, also group these fields together for convenience. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Feb 27, 2023 at 15:28 UTC
d144a9d30d883ec4b2ea5ed065e1b42237217c14
1 file changed
+8
-8
dir.h
+8
-8
@@ -212,12 +212,6 @@ struct untracked_cache {
212
*/
213
struct dir_struct {
214
215
- /* The number of members in `entries[]` array. */
216
- int nr;
217
-
218
- /* The number of members in `ignored[]` array. */
219
- int ignored_nr;
220
-
215
/* bit-field of options */
216
enum {
217
@@ -282,14 +276,20 @@ struct dir_struct {
276
DIR_SKIP_NESTED_GIT = 1<<9
277
} flags;
278
279
+ /* The number of members in `entries[]` array. */
280
+ int nr; /* output only */
281
+
282
+ /* The number of members in `ignored[]` array. */
283
+ int ignored_nr; /* output only */
284
+
285
/* An array of `struct dir_entry`, each element of which describes a path. */
286
- struct dir_entry **entries;
286
+ struct dir_entry **entries; /* output only */
287
288
/**
289
* used for ignored paths with the `DIR_SHOW_IGNORED_TOO` and
290
* `DIR_COLLECT_IGNORED` flags.
291
*/
292
- struct dir_entry **ignored;
292
+ struct dir_entry **ignored; /* output only */
293
294
/* Enable/update untracked file cache if set */
295
struct untracked_cache *untracked;