[PATCH v2 2/3] repo: use [--format=... | -z] instead of [-z] in git-repo-info synopsis
From: Lucas Seiki Oshiro <hidden>
Date: 2025-12-04 21:09:40
Subsystem:
documentation, the rest · Maintainers:
Jonathan Corbet, Linus Torvalds
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 <redacted> --- Documentation/git-repo.adoc | 4 ++-- builtin/repo.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
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 | <key>...] +git repo info [--format=(keyvalue|nul) | -z] [--all | <key>...] 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 | <key>...]`:: +`info [--format=(keyvalue|nul) | -z] [--all | <key>...]`:: 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 | <key>...]", + "git repo info [--format=(keyvalue|nul) | -z] [--all | <key>...]", "git repo structure [--format=(table|keyvalue|nul)]", NULL };
--
2.50.1 (Apple Git-155)