From: Wasswa Edson <edsonwasswa54@gmail.com>
To: git@vger.kernel.org
Cc: tangajoris@gmail.com, Wasswa Edson <edsonwasswa54@gmail.com>
Subject: [PATCH v2 1/3] credential: make -h output and SYNOPSIS agree
Date: Sat, 14 Nov 2026 21:47:50 +0300 [thread overview]
Message-ID: <20261114184752.1417-2-edsonwasswa54@gmail.com> (raw)
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
next prev parent reply other threads:[~2026-11-14 18:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 20:22 [PATCH] credential: parse subcommands with OPT_SUBCOMMAND Wasswa Edson
2026-11-08 22:28 ` Tanga Joris
2026-11-14 18:47 ` [PATCH v2 0/3] " Wasswa Edson
2026-11-14 18:47 ` Wasswa Edson [this message]
2026-11-14 18:47 ` [PATCH v2 2/3] credential: move each subcommand into its own function Wasswa Edson
2026-11-14 18:47 ` [PATCH v2 3/3] credential: parse subcommands with OPT_SUBCOMMAND Wasswa Edson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261114184752.1417-2-edsonwasswa54@gmail.com \
--to=edsonwasswa54@gmail.com \
--cc=git@vger.kernel.org \
--cc=tangajoris@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox