]> git.ipfire.org Git - thirdparty/git.git/commitdiff
repo: use [--format=... | -z] instead of [-z] in git-repo-info synopsis
authorLucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Thu, 4 Dec 2025 20:10:11 +0000 (17:10 -0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Dec 2025 02:39:19 +0000 (11:39 +0900)
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 <lucasseikioshiro@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-repo.adoc
builtin/repo.c

index 5d9c7641c24c9e8d8e97db4583bea24d95d0e568..f24514deaa4cd7c088dcbf79c0f1b86eeb9100bb 100644 (file)
@@ -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).
index 2a653bd3eacf20969c30e0f7644d25a473d3d1d2..cc97dd1836fb9f22153e419b51f8615d4d0a6ded 100644 (file)
@@ -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
 };