]> Kevux Git Server - rit/commit
interpret-trailers: factor trailer rewriting
authorLi Chen <me@linux.beauty>
Fri, 6 Mar 2026 14:53:27 +0000 (14:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Mar 2026 21:02:19 +0000 (13:02 -0800)
commit8efabc9e64f9c93a764b0d38981bf99d75f502bd
tree39eace60b5b911448f94cd71c6a634762ac044a2
parent7c02d39fc2ed2702223c7674f73150d9a7e61ba4
interpret-trailers: factor trailer rewriting

Extract the trailer rewriting logic into a helper that appends to an
output strbuf.

Update interpret_trailers() to handle file I/O only: read input once,
call the helper, and write the buffered result.

This separation makes it easier to move the helper into trailer.c in the
next commit.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Li Chen <me@linux.beauty>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/interpret-trailers.c