trailer: separate public from internal portion of trailer_iterator
commit13211ae23f9126be81b3b483163bf963df4826aa
authorLinus Arver <linusa@google.com>
Sat, 9 Sep 2023 06:16:12 +0000 (9 06:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Sep 2023 17:01:18 +0000 (11 10:01 -0700)
tree816066471f74ddc1eecccc6379521324c4a14638
parentac83bc5054c2ac489166072334b4147ce6d0fccb
trailer: separate public from internal portion of trailer_iterator

The fields here are not meant to be used by downstream callers, so put
them behind an anonymous struct named as "internal" to warn against
their use. This follows the pattern in 576de3d956 (unpack_trees: start
splitting internal fields from public API, 2023-02-27).

Signed-off-by: Linus Arver <linusa@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c
trailer.h