Re: [PATCH v3 2/2] repo: add new flag --keys to git-repo-info
From: Patrick Steinhardt <hidden>
Date: 2026-01-12 08:40:52
On Fri, Jan 09, 2026 at 05:31:53PM -0300, Lucas Seiki Oshiro wrote:
quoted hunk ↗ jump to hunk
diff --git a/Documentation/git-repo.adoc b/Documentation/git-repo.adoc index fa0e6600af..4471816cc8 100644 --- a/Documentation/git-repo.adoc +++ b/Documentation/git-repo.adoc@@ -47,6 +48,16 @@ supported: + `-z` is an alias for `--format=nul`. +`info --keys [--format=(default|nul) | -z]`:: + List all the available keys, one per line. The output format can be chosen + through the flag `--format`. The following formats are supported: ++ +`default`::: + output the keys one per line. + +`nul`::: + similar to `default`, but using a NUL character after each value. + `structure [--format=(default|table|keyvalue|nul) | -z]`:: Retrieve statistics about the current repository structure. The following kinds of information are reported:
I think it's slightly unfortunate that the default format cannot be explicitly chosen. "keyvalue" of course doesn't make sense, but maybe we should have a format "newline" that can be specified? Other than that the patches look good to me, thanks! Patrick