Skip to content

Commit d144a9d

Browse files
newrengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 59e009b commit d144a9d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dir.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,6 @@ struct untracked_cache {
212212
*/
213213
struct dir_struct {
214214

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-
221215
/* bit-field of options */
222216
enum {
223217

@@ -282,14 +276,20 @@ struct dir_struct {
282276
DIR_SKIP_NESTED_GIT = 1<<9
283277
} flags;
284278

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+
285285
/* 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 */
287287

288288
/**
289289
* used for ignored paths with the `DIR_SHOW_IGNORED_TOO` and
290290
* `DIR_COLLECT_IGNORED` flags.
291291
*/
292-
struct dir_entry **ignored;
292+
struct dir_entry **ignored; /* output only */
293293

294294
/* Enable/update untracked file cache if set */
295295
struct untracked_cache *untracked;

0 commit comments

Comments
 (0)