Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-02-27 18:28:16 +0300
committerJunio C Hamano <gitster@pobox.com>2023-02-27 19:29:51 +0300
commit576de3d95608df759c1f09e84f4ce1cea3c404d4 (patch)
treebe738d542774a47d6640b5ddc799794e8b0cf1ca /unpack-trees.h
parent33b1b4c7681703c44babdbd229cc96a3ad540569 (diff)
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.h7
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,