]> Kevux Git Server - rit/commit
builtin/repo: add helper for printing keyvalue output
authorJustin Tobler <jltobler@gmail.com>
Mon, 2 Mar 2026 21:45:22 +0000 (15:45 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Mar 2026 21:54:51 +0000 (13:54 -0800)
commitfa1752792711e7383376cf232eb72aac77d726d7
tree057cf8ddbc31fe8f404e6a03444a3e1ae17516ed
parent31c771ab443352741ecc3710d54a91890a68ee79
builtin/repo: add helper for printing keyvalue output

The machine-parsable formats for the git-repo(1) "structure" subcommand
print output in keyvalue pairs. Introduce the helper function
`print_keyvalue()` to remove some code duplication and improve
readability.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repo.c