Linus Arver
676c1db76e
trailer: begin formatting unification
...
Now that the preparatory refactors are over, we can replace the call to
format_trailers() in interpret-trailers with format_trailer_info(). This
unifies the trailer formatting machinery
In order to avoid breakages in t7502 and t7513, we have to steal the
features present in format_trailers(). Namely, we have to teach
format_trailer_info() as follows:
(1) make it aware of opts->trim_empty, and
(2) make it avoid hardcoding ": " as the separator and space (which
can result in double-printing these characters).
For (2), make it only print the separator and space if we cannot find
any recognized separator somewhere in the key (yes, keys may have a
trailing separator in it --- we will eventually fix this design but not
now). Do so by copying the code out of print_tok_val(), and deleting the
same function.
Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Linus Arver <linusa@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-03-15 10:10:25 -07:00
..
2024-03-07 15:59:41 -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-02-08 16:22:10 -08:00
2024-02-08 16:22:10 -08:00
2024-02-28 09:47:03 -08:00
2023-10-29 08:56:17 +09:00
2023-08-07 11:57:18 -07:00
2024-02-14 15:36:06 -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-03-07 15:59:41 -08:00
2024-03-04 14:05:13 -08:00
2024-03-07 15:59:42 -08:00
2024-02-13 10:18:50 -08:00
2024-02-08 13:20:34 -08:00
2023-12-26 12:04:31 -08:00
2024-03-07 15:59:41 -08:00
2024-01-29 10:27:53 -08: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
2024-02-12 09:32:41 -08:00
2024-02-28 09:47:03 -08:00
2023-07-05 11:42:31 -07:00
2024-03-11 14:12:30 -07:00
2023-07-05 11:41:59 -07:00
2024-02-23 10:36:28 -08:00
2023-06-21 13:39:53 -07:00
2024-02-21 09:58:06 -08:00
2023-12-26 12:04:33 -08:00
2024-01-18 12:17:42 -08:00
2023-12-26 12:04:31 -08:00
2024-02-14 15:36:06 -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
2024-02-08 16:22:12 -08:00
2024-01-16 10:11:57 -08:00
2024-03-15 10:10:25 -07:00
2024-02-29 08:06:01 -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
2024-02-29 08:06:01 -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-03-11 14:12:30 -07:00
2024-03-11 14:12:30 -07: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
2024-02-26 09:35:40 -08:00
2024-02-14 15:36:06 -08:00
2024-02-08 16:22:10 -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
2024-02-29 08:06:01 -08:00
2024-02-08 16:22:10 -08:00
2023-12-26 12:04:31 -08:00
2024-03-07 15:59:41 -08:00
2024-03-11 14:12:30 -07:00
2024-02-28 09:47:03 -08:00
2024-03-01 14:38:55 -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-02-08 16:22:10 -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
2024-03-07 15:59:41 -08:00
2024-02-14 09:39:14 -08:00
2024-02-29 08:06:01 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2024-02-08 16:22:10 -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-02-13 14:44:47 -08:00
2024-02-08 16:22:10 -08:00
2024-02-13 14:44:49 -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-02-27 16:04:32 -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
2024-02-28 14:42:01 -08:00
2024-01-18 12:17:41 -08: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-02-13 14:44:48 -08:00
2023-06-21 13:39:53 -07:00