]> Kevux Git Server - rit/commit
trailer: libify a couple of functions
authorLi Chen <me@linux.beauty>
Fri, 6 Mar 2026 14:53:29 +0000 (14:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Mar 2026 21:02:19 +0000 (13:02 -0800)
commita4fd4c523444f6b7d11b7af4dc6d790ac4fd8ec5
treee0a70fce476b8aa55d197eed9a699c062a334c79
parent876b2ebee2cd520f6ce78ac9bcf4c5486e509a1d
trailer: libify a couple of functions

Move create_in_place_tempfile() and process_trailers() from
builtin/interpret-trailers.c into trailer.c and expose it via trailer.h.

This reverts most of ae0ec2e0e0b (trailer: move interpret_trailers()
to interpret-trailers.c, 2024-03-01) and lets other call sites reuse
the same trailer rewriting logic.

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