diff options
| author | Lucas Seiki Oshiro <lucasseikioshiro@gmail.com> | 2026-02-13 21:35:16 -0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-14 10:12:10 -0800 |
| commit | 173c43be54f0039a9f6e13afaad3c953bb6b06dc (patch) | |
| tree | 3b3e2582a96e42ee481f4d523ac5531d141671a7 /Documentation | |
| parent | ebb667add9b6be123b6eb6f4b9de636c83d6f30c (diff) | |
| download | git-173c43be54f0039a9f6e13afaad3c953bb6b06dc.tar.xz | |
repo: add new flag --keys to git-repo-info
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 <lucasseikioshiro@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/git-repo.adoc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/git-repo.adoc b/Documentation/git-repo.adoc index 693e1bbced..319d30bd86 100644 --- a/Documentation/git-repo.adoc +++ b/Documentation/git-repo.adoc @@ -9,6 +9,7 @@ SYNOPSIS -------- [synopsis] git repo info [--format=(lines|nul) | -z] [--all | <key>...] +git repo info --keys [--format=(lines|nul) | -z] git repo structure [--format=(table|lines|nul) | -z] DESCRIPTION @@ -45,6 +46,16 @@ supported: + `-z` is an alias for `--format=nul`. +`info --keys [--format=(lines|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: ++ +`lines`::: + Output the keys one per line. This is the default. + +`nul`::: + Similar to `lines`, but using a _NUL_ character after each value. + `structure [--format=(table|lines|nul) | -z]`:: Retrieve statistics about the current repository structure. The following kinds of information are reported: |
