[PATCH v2 1/3] credential: make -h output and SYNOPSIS agree
- From
- Wasswa Edson <edsonwasswa54@gmail.com>
- Date
- Nov 14, 2026, 18:47 UTC
- Message-ID
- <20261114184752.1417-2-edsonwasswa54@gmail.com>
- In-Reply-To
- <20261114184752.1417-1-edsonwasswa54@gmail.com>
The usage string of "git credential" does not mention the "capability" subcommand, even though it is documented and implemented. The SYNOPSIS in its documentation does list it, but is written as a plain literal block instead of using [verse], so t0450 cannot extract it, and "credential" has been listed as a known mismatch between the "-h" output and the documentation.
Add "capability" to the usage string, mark the SYNOPSIS as [verse], and drop "credential" from the list of known mismatches.
Signed-off-by: Wasswa Edson <edsonwasswa54@gmail.com> --- Documentation/git-credential.adoc | 3 +-- builtin/credential.c | 2 +- t/t0450/adoc-help-mismatches | 1 - 3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/Documentation/git-credential.adoc b/Documentation/git-credential.adoc index e41493292f..e12d429f43 100644 --- a/Documentation/git-credential.adoc +++ b/Documentation/git-credential.adoc @@ -7,9 +7,8 @@ git-credential - Retrieve and store user credentials SYNOPSIS -------- ------------------- +[verse] 'git credential' (fill|approve|reject|capability) ------------------- DESCRIPTION ----------- diff --git a/builtin/credential.c b/builtin/credential.c index a295c80b36..72e7b2af4e 100644 --- a/builtin/credential.c +++ b/builtin/credential.c @@ -7,7 +7,7 @@ #include "config.h" static const char usage_msg[] = - "git credential (fill|approve|reject)"; + "git credential (fill|approve|reject|capability)"; int cmd_credential(int argc, const char **argv, diff --git a/t/t0450/adoc-help-mismatches b/t/t0450/adoc-help-mismatches index baf3b1d809..939e47bf3a 100644 --- a/t/t0450/adoc-help-mismatches +++ b/t/t0450/adoc-help-mismatches @@ -9,7 +9,6 @@ checkout checkout-index clone column -credential credential-cache credential-store fetch-pack
-- 2.53.0