diff options
author | Elijah Newren <newren@gmail.com> | 2023-02-27 16:28:16 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-27 17:29:51 +0100 |
commit | 576de3d95608df759c1f09e84f4ce1cea3c404d4 (patch) | |
tree | be738d542774a47d6640b5ddc799794e8b0cf1ca /unpack-trees.h | |
parent | sparse-checkout: avoid using internal API of unpack-trees, take 2 (diff) | |
download | git-576de3d95608df759c1f09e84f4ce1cea3c404d4.tar.xz git-576de3d95608df759c1f09e84f4ce1cea3c404d4.zip |
unpack_trees: start splitting internal fields from public API
This just splits the two fields already marked as internal-only into a
separate internal struct. Future commits will add more fields that
were meant to be internal-only but were not explicitly marked as such
to the same struct.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.h')
-rw-r--r-- | unpack-trees.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/unpack-trees.h b/unpack-trees.h index f3a6e4f90e..5c1a9314a0 100644 --- a/unpack-trees.h +++ b/unpack-trees.h @@ -97,9 +97,12 @@ struct unpack_trees_options { struct index_state *src_index; struct index_state result; - struct pattern_list *pl; /* for internal use */ - struct dir_struct *dir; /* for internal use only */ struct checkout_metadata meta; + + struct unpack_trees_options_internal { + struct pattern_list *pl; + struct dir_struct *dir; + } internal; }; int unpack_trees(unsigned n, struct tree_desc *t, |