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
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:33 -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-10-29 08:56:17 +09:00
2023-08-07 11:57:18 -07:00
2023-12-26 12:04:31 -08:00
2023-08-11 09:44:52 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:54 -07:00
2023-06-21 13:39:53 -07:00
2023-07-05 11:42:31 -07:00
2023-12-26 12:04:31 -08:00
2024-01-08 14:05:15 -08:00
2023-12-09 07:41:03 +09:00
2024-01-08 14:05:15 -08:00
2023-12-18 14:10:13 -08:00
2023-12-26 12:04:33 -08:00
2023-12-26 12:04:31 -08:00
2024-01-08 14:05:15 -08:00
2023-07-17 11:30:42 -07:00
2023-07-13 17:24:00 -07:00
2023-07-05 11:42:31 -07:00
2023-12-26 12:04:31 -08:00
2023-07-06 11:54:46 -07:00
2023-03-28 14:11:24 -07:00
2023-12-26 12:04:31 -08:00
2023-04-11 08:52:10 -07:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 11:06:23 -08:00
2023-07-05 11:42:31 -07:00
2024-01-08 14:05:15 -08:00
2023-07-05 11:41:59 -07:00
2024-01-08 14:05:15 -08:00
2023-06-21 13:39:53 -07:00
2023-12-26 12:04:33 -08:00
2023-12-26 12:04:33 -08:00
2023-10-18 13:25:41 -07:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:33 -08:00
2023-12-26 12:04:31 -08:00
2023-07-06 11:54:48 -07:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2024-03-01 10:35:42 -08:00
2024-01-08 14:05:15 -08:00
2023-12-26 12:04:31 -08:00
2024-01-08 14:05:15 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2023-06-21 13:39:53 -07:00
2023-12-26 12:04:31 -08:00
2023-11-22 14:23:06 +09:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-12-26 12:04:31 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2023-12-26 12:04:33 -08:00
2023-07-05 11:42:31 -07:00
2023-07-06 11:54:48 -07:00
2023-12-26 12:04:31 -08:00
2023-09-05 14:58:44 -07:00
2023-12-26 12:04:31 -08:00
2024-01-08 14:05:15 -08:00
2023-06-21 13:39:54 -07:00
2023-05-12 14:54:14 -07:00
2023-07-06 11:54:48 -07:00
2023-03-21 10:56:51 -07:00
2023-06-29 16:43:21 -07:00
2023-12-26 12:04:31 -08:00
2024-01-08 14:05:15 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:15 -08:00
2023-12-18 14:10:12 -08:00
2023-03-28 14:11:24 -07:00
2023-03-28 14:11:24 -07:00
2023-08-04 10:52:31 -07:00
2024-01-08 14:05:15 -08:00
2023-07-13 17:24:00 -07:00
2023-11-26 10:10:50 +09:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:33 -08:00
2023-12-09 07:41:03 +09:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2024-01-08 14:05:15 -08:00
2023-06-21 13:39:53 -07:00
2023-07-27 15:26:37 -07:00
2023-06-21 13:39:53 -07:00
2024-01-08 14:05:15 -08:00
2024-01-08 14:05:16 -08:00
2023-12-26 12:04:31 -08:00
2023-07-06 11:54:46 -07:00
2023-12-26 12:04:31 -08:00
2023-07-05 11:41:18 -07:00
2024-01-08 14:05:15 -08:00
2023-07-05 11:41:59 -07:00
2023-12-26 12:04:31 -08:00
2023-10-02 11:20:00 -07:00
2023-12-26 12:04:31 -08:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-06-29 16:43:21 -07:00
2023-11-02 16:53:23 +09:00
2023-12-26 12:04:31 -08:00
2023-06-21 13:39:54 -07:00
2023-12-26 12:04:31 -08:00
2024-01-02 13:51:30 -08:00
2023-06-21 13:39:53 -07:00