summaryrefslogtreecommitdiffstats
path: root/dir.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-02-27 16:28:12 +0100
committerJunio C Hamano <gitster@pobox.com>2023-02-27 17:29:50 +0100
commitd144a9d30d883ec4b2ea5ed065e1b42237217c14 (patch)
treea8013213305aa758c8ef204fab02778cc9089d0e /dir.h
parentdir: add a usage note to exclude_per_dir (diff)
downloadgit-d144a9d30d883ec4b2ea5ed065e1b42237217c14.tar.xz
git-d144a9d30d883ec4b2ea5ed065e1b42237217c14.zip
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>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/dir.h b/dir.h
index 2196e12630..e8106e1eca 100644
--- a/dir.h
+++ b/dir.h
@@ -212,12 +212,6 @@ struct untracked_cache {
*/
struct dir_struct {
- /* The number of members in `entries[]` array. */
- int nr;
-
- /* The number of members in `ignored[]` array. */
- int ignored_nr;
-
/* bit-field of options */
enum {
@@ -282,14 +276,20 @@ struct dir_struct {
DIR_SKIP_NESTED_GIT = 1<<9
} flags;
+ /* The number of members in `entries[]` array. */
+ int nr; /* output only */
+
+ /* The number of members in `ignored[]` array. */
+ int ignored_nr; /* output only */
+
/* An array of `struct dir_entry`, each element of which describes a path. */
- struct dir_entry **entries;
+ struct dir_entry **entries; /* output only */
/**
* used for ignored paths with the `DIR_SHOW_IGNORED_TOO` and
* `DIR_COLLECT_IGNORED` flags.
*/
- struct dir_entry **ignored;
+ struct dir_entry **ignored; /* output only */
/* Enable/update untracked file cache if set */
struct untracked_cache *untracked;