From 5f35c55ed17abee54e39ea34f2dccc27b77d5671 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:40:22 -0700 Subject: Print each person through one helper The log, refs and tag pages no longer open a filter of their own, so they stop including filter.h. --- source/ui-shared.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/ui-shared.h') diff --git a/source/ui-shared.h b/source/ui-shared.h index 87f9c60..6b58ab3 100644 --- a/source/ui-shared.h +++ b/source/ui-shared.h @@ -107,6 +107,13 @@ extern struct date_mode cgit_date_mode(enum date_mode_type type); * relative dates off gets the date either way. */ extern void cgit_print_age(time_t t, int tz, time_t max_relative); + +/* + * Print name through the email filter, followed by the address when + * show_email is set and enable-plain-email is on. A missing address reaches + * the filter as an empty string, since a filter must not be handed NULL. + */ +extern void cgit_print_person(const char *name, const char *email, const char *origin, int show_email); extern void cgit_print_http_headers(void); /* * Answer with a redirect to url, followed by query when one is given. Both -- cgit