From 13211ae23f9126be81b3b483163bf963df4826aa Mon Sep 17 00:00:00 2001 From: Linus Arver Date: Sat, 9 Sep 2023 06:16:12 +0000 Subject: 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 Signed-off-by: Junio C Hamano --- trailer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'trailer.h') diff --git a/trailer.h b/trailer.h index 795d2fccfd..ab2cd01756 100644 --- a/trailer.h +++ b/trailer.h @@ -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; }; /* -- cgit v1.2.3