Subject: Re: [PATCH v3 2/6] builtin/repo: add helper for printing keyvalue output

From: Junio C Hamano <[email-masked]>
Date: Tue, 03 Mar 2026 09:40:48 -0800

Patrick Steinhardt <[email-masked]> writes:

>> +	print_keyvalue("references.branches.count", key_delim,
>> +		       stats->refs.branches, value_delim);
>> ...
>
> It's still easy to miss any mismatch here, but I guess the result is
> definitely easier to read regardless of that.

Sure, we could further do something silly like

#define P(name, source) print_keyvalue(name, key_delim, source, value_delim)

and reduce the above to

	P("references.branches.count", stats->refs.branches);

if we wanted to.