From: Lucas Seiki Oshiro Date: Thu, 4 Dec 2025 20:10:11 +0000 (-0300) Subject: repo: use [--format=... | -z] instead of [-z] in git-repo-info synopsis X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=768cf991ffea54dbcaf63c45750f0e3a26ebdcc6;p=thirdparty%2Fgit.git repo: use [--format=... | -z] instead of [-z] in git-repo-info synopsis The flag -z is only an alias for --format=null and even though --format and -z can be used together and repeated, only the last one is considered. Replace `[-z]` in the synopsis of git-repo-info by `[--format=... | -z]`, expliciting that the use of one of those flags replace the other. Signed-off-by: Lucas Seiki Oshiro Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-repo.adoc b/Documentation/git-repo.adoc index 5d9c7641c2..f24514deaa 100644 --- a/Documentation/git-repo.adoc +++ b/Documentation/git-repo.adoc @@ -8,7 +8,7 @@ git-repo - Retrieve information about the repository SYNOPSIS -------- [synopsis] -git repo info [--format=(keyvalue|nul)] [-z] [--all | ...] +git repo info [--format=(keyvalue|nul) | -z] [--all | ...] git repo structure [--format=(table|keyvalue|nul)] DESCRIPTION @@ -19,7 +19,7 @@ THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE. COMMANDS -------- -`info [--format=(keyvalue|nul)] [-z] [--all | ...]`:: +`info [--format=(keyvalue|nul) | -z] [--all | ...]`:: Retrieve metadata-related information about the current repository. Only the requested data will be returned based on their keys (see "INFO KEYS" section below). diff --git a/builtin/repo.c b/builtin/repo.c index 2a653bd3ea..cc97dd1836 100644 --- a/builtin/repo.c +++ b/builtin/repo.c @@ -15,7 +15,7 @@ #include "utf8.h" static const char *const repo_usage[] = { - "git repo info [--format=(keyvalue|nul)] [-z] [--all | ...]", + "git repo info [--format=(keyvalue|nul) | -z] [--all | ...]", "git repo structure [--format=(table|keyvalue|nul)]", NULL };