interpret-trailers: access trailer_info with new helpers
commit655eb65d48bec60d24baf66bf19de394eb2e6aea
authorLinus Arver <linus@ucla.edu>
Thu, 2 May 2024 04:54:22 +0000 (2 04:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 May 2024 16:57:08 +0000 (2 09:57 -0700)
tree3b623908c1e1cb6bfc6b277cf0eec53f44be4f53
parent2ade05431ebfc8c159a00202c44580754c7d42e2
interpret-trailers: access trailer_info with new helpers

Instead of directly accessing trailer_info members, access them
indirectly through new helper functions exposed by the trailer API.

This is the first of two preparatory commits which will allow us to
use the so-called "pimpl" (pointer to implementation) idiom for the
trailer API, by making the trailer_info struct private to the trailer
implementation (and thus hidden from the API).

Helped-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Linus Arver <linus@ucla.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/interpret-trailers.c
trailer.c
trailer.h