From: Jean-Noël AVILA Date: Sat, 10 Jan 2026 12:04:40 GMT Subject: Re: [PATCH v3 2/2] repo: add new flag --keys to git-repo-info Message-ID: <12814829.O9o76ZdvQC@piment-oiseau> In-Reply-To: <20260109211554.90828-4-lucasseikioshiro@gmail.com> On Friday, 9 January 2026 21:31:53 CET Lucas Seiki Oshiro wrote: > If the user wants to find what are the available keys, they need to > either check the documentation or to ask for all the key-value pairs > by using --all. > > Add a new flag --keys for listing only the available keys without > listing the values. > > Signed-off-by: Lucas Seiki Oshiro > --- > Documentation/git-repo.adoc | 11 +++++++++++ > builtin/repo.c | 32 ++++++++++++++++++++++++++++++++ > t/t1900-repo.sh | 34 +++++++++++++++++++++++----------- > 3 files changed, 66 insertions(+), 11 deletions(-) > > 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 > @@ -9,6 +9,7 @@ SYNOPSIS > -------- > [synopsis] > git repo info [--format=(default|keyvalue|nul) | -z] [--all | ...] > +git repo info --keys [--format=(default|nul) | -z] > git repo structure [--format=(default|table|keyvalue|nul) | -z] > > DESCRIPTION > @@ -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. We use the placeholder format for character names: _NUL_