Files
git/builtin
Linus Arver ae0ec2e0e0 trailer: move interpret_trailers() to interpret-trailers.c
The interpret-trailers.c builtin is the only place we need to call
interpret_trailers(), so move its definition there (together with a few
helper functions called only by it) and remove its external declaration
from <trailer.h>.

Several helper functions that are called by interpret_trailers() remain
in trailer.c because other callers in the same file still call them.
Declare them in <trailer.h> so that interpret_trailers() (now in
builtin/interpret-trailers.c) can continue calling them as a trailer API
user.

This enriches <trailer.h> with a more granular API, which can then be
unit-tested in the future (because interpret_trailers() by itself does
too many things to be able to be easily unit-tested).

Take this opportunity to demote some file-handling functions out of the
trailer API implementation, as these have nothing to do with trailers.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Linus Arver <linusa@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-03-01 10:35:42 -08:00
..
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2023-12-18 14:10:13 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2023-10-18 13:25:41 -07:00
2023-07-06 11:54:48 -07:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2023-07-06 11:54:48 -07:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2023-07-06 11:54:46 -07:00
2024-01-08 14:05:15 -08:00
2024-01-02 13:51:30 -08:00