From: Junio C Hamano Date: Tue, 03 Mar 2026 17:40:48 GMT Subject: Re: [PATCH v3 2/6] builtin/repo: add helper for printing keyvalue output Message-ID: In-Reply-To: Patrick Steinhardt 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.