diff options
| author | Lucas Seiki Oshiro <lucasseikioshiro@gmail.com> | 2025-12-04 17:10:12 -0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-05 11:39:19 +0900 |
| commit | 76c0704bdf6ee8ac0be11830cb6ae8d08cc587a8 (patch) | |
| tree | 13d438af035169365e285d3779e846e79e11e8d5 /Documentation | |
| parent | 768cf991ffea54dbcaf63c45750f0e3a26ebdcc6 (diff) | |
| download | git-76c0704bdf6ee8ac0be11830cb6ae8d08cc587a8.tar.xz | |
repo: add -z as an alias for --format=nul to git-repo-structure
Other Git commands that have nul-terminated output, such as git-config,
git-status, git-ls-files, and git-repo-info have a flag `-z` for using
the null character as the record separator.
Add the `-z` flag to git-repo-structure as an alias for `--format=nul`,
making it consistent with the behavior of the other commands.
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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/git-repo.adoc b/Documentation/git-repo.adoc index f24514deaa..c4a78277df 100644 --- a/Documentation/git-repo.adoc +++ b/Documentation/git-repo.adoc @@ -9,7 +9,7 @@ SYNOPSIS -------- [synopsis] git repo info [--format=(keyvalue|nul) | -z] [--all | <key>...] -git repo structure [--format=(table|keyvalue|nul)] +git repo structure [--format=(table|keyvalue|nul) | -z] DESCRIPTION ----------- @@ -44,7 +44,7 @@ supported: + `-z` is an alias for `--format=nul`. -`structure [--format=(table|keyvalue|nul)]`:: +`structure [--format=(table|keyvalue|nul) | -z]`:: Retrieve statistics about the current repository structure. The following kinds of information are reported: + @@ -71,6 +71,8 @@ supported: the delimiter between the key and value instead of '='. Unlike the `keyvalue` format, values containing "unusual" characters are never quoted. ++ +`-z` is an alias for `--format=nul`. INFO KEYS --------- |
