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 <lucasseikioshiro@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Lucas Seiki Oshiro committed Dec 4, 2025 at 17:10 UTC 768cf991ffea54dbcaf63c45750f0e3a26ebdcc6
2 files changed +3 -3
Documentation/git-repo.adoc
+2 -2
@@ -8,7 +8,7 @@ git-repo - Retrieve information about the repository
8 SYNOPSIS
9 --------
10 [synopsis]
11 -git repo info [--format=(keyvalue|nul)] [-z] [--all | <key>...]
11 +git repo info [--format=(keyvalue|nul) | -z] [--all | <key>...]
12 git repo structure [--format=(table|keyvalue|nul)]
13
14 DESCRIPTION
@@ -19,7 +19,7 @@ THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE.
19
20 COMMANDS
21 --------
22 -`info [--format=(keyvalue|nul)] [-z] [--all | <key>...]`::
22 +`info [--format=(keyvalue|nul) | -z] [--all | <key>...]`::
23 Retrieve metadata-related information about the current repository. Only
24 the requested data will be returned based on their keys (see "INFO KEYS"
25 section below).
builtin/repo.c
+1 -1
@@ -15,7 +15,7 @@
15 #include "utf8.h"
16
17 static const char *const repo_usage[] = {
18 - "git repo info [--format=(keyvalue|nul)] [-z] [--all | <key>...]",
18 + "git repo info [--format=(keyvalue|nul) | -z] [--all | <key>...]",
19 "git repo structure [--format=(table|keyvalue|nul)]",
20 NULL
21 };