]> git.ipfire.org Git - thirdparty/git.git/commit
interpret-trailers: factor out buffer-based processing to process_trailers()
authorLi Chen <chenl311@chinatelecom.cn>
Wed, 5 Nov 2025 14:29:41 +0000 (22:29 +0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Nov 2025 17:45:00 +0000 (09:45 -0800)
commit6145e03295ca33af14683f2973b8bbcbb63b4edf
treebdfe08f14bd18623a50f8a56a736dd9aaf1773c1
parent77b7284ccab768981a2cd08b6b2f164d91201e18
interpret-trailers: factor out buffer-based processing to process_trailers()

Extracted trailer processing into a helper that accumulates output in
a strbuf before writing.

Updated interpret_trailers() to reuse the helper, buffer output, and
clean up both input and output buffers after writing.

Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/interpret-trailers.c