diff options
author | Linus Arver <linusa@google.com> | 2023-09-09 09:16:12 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-09-11 20:01:18 +0300 |
commit | 13211ae23f9126be81b3b483163bf963df4826aa (patch) | |
tree | 816066471f74ddc1eecccc6379521324c4a14638 /trailer.h | |
parent | ac83bc5054c2ac489166072334b4147ce6d0fccb (diff) |
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>
Diffstat (limited to 'trailer.h')
-rw-r--r-- | trailer.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -119,8 +119,10 @@ struct trailer_iterator { struct strbuf val; /* private */ - struct trailer_info info; - size_t cur; + struct { + struct trailer_info info; + size_t cur; + } internal; }; /* |