🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #3146

[PATCH v2 1/3] credential: make -h output and SYNOPSIS agree

#3146
From: Wasswa Edson
Date: Sat, 14 Nov 2026 18:47
60 lines
12530 bytes
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
Technical Details
Message-ID: <20261114184752.1417-2-edsonwasswa54@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75466-linux-kernel-git=dewy.ru
References: <20261104202228.24642-1-edsonwasswa54@gmail.com> <20261114184752.1417-1-edsonwasswa54@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75466-linux-kernel-git=dewy.ru
From: edsonwasswa54@gmail.com (Wasswa Edson)
Newsgroups: linux.kernel.git
Subject: [PATCH v2 1/3] credential: make -h output and SYNOPSIS agree
Date: Sat, 14 Nov 2026 21:47:50 +0300
Organization: Usenet Network
Message-ID: <20261114184752.1417-2-edsonwasswa54@gmail.com>
References: <20261104202228.24642-1-edsonwasswa54@gmail.com>
 <20261114184752.1417-1-edsonwasswa54@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1636701"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:F8P/qhvMTl54WKicbhXvoX1lILk= sha256:zVrbCCIeGH9uc4c+qLp0/3rhkRhGmzHJry78Ui2L9Kc=
	sha1:Es4ie8tgNi66ohtatf2ScU+GpjY= sha256:dc1otirnX/Yx118+cgM9Kkz/JEJ+0+btH5KaYRDLyYE=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id B3AD211489A; Sat, 14 Nov 2026 21:48:37 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Vl0jJAqiIjkb;
	Sat, 14 Nov 2026 21:48:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=git+bounces-75466-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id D7232114896; Sat, 14 Nov 2026 21:48:26 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 31F52610E91; Sat, 14 Nov 2026 18:48:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794682099;
	b=s5VlMC4QaSKRRRaZtBsa07VTsV+IkqUOkZFEmqGAz8Oxua2G5X+Vu8DydHjJwRTg8WmV
	 P+c4msLfB46RvlkkNbCQnU8NmCckL21j2uck/OGlZrxOBCAaKgZy0ew99W2UiUqpf3I5v
	 n63hiJ7SvVA0HvcyQLcxkC++WywmAZDQw5148z8fJOzcL0Gtqlyl31/gYWAkLaaFFLvFr
	 UPHezKsncZU8fHKOJM+nvb6HYVa/YWYZgFgNLgn2uvx1C1oTkPH3Z91f3zmeUqiICnJny
	 G+x7NHsv6La8gAej7rldju5xTaAIbkQpZ4rSirNXQdkczHhB90lSdledrTzgjZlijSQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794682099;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
	 References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=wJeD6WjT2Jh3rxkcUj1K4xIZFxeuj17LydVuBLNyvzg=;
	b=tZSMe0FoizvQd+T3da66c5ppYCVVNQS8mwTSiRbIqSBW1WhP+tx/U7vEl2rtfX22pI87
	 RPY1pp3Z1nAcNgtQOWf6Ro96FwhIi2LbM81C5eufwcqpksfY5XzDxjul+J91MgtnA3cNO
	 H5t7BkYQSvGNxX28A6osLNBngDTv+pwhrQKxJG0OT8SqnEPa0PKqakHkA8v/kb0uP1Riu
	 LzB7GuE3RTacJX5AEuEWUbNnVaH4siczojeHHCO4X1dne9aOS1FpOrAmWznSB+SwPvpbB
	 uvrwsy0od9TveH9QHhVvUFOLMbv/HFtxoG+puRJpDKahXyariAQlACk7aX2fZvx19+A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=pwNnJz8k;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id DFF1B606A339;
	Sat, 14 Nov 2026 18:48:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=pwNnJz8k
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.53
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794682098;
	b=SmI5Y543Ejdh8VxS4x9+K80KtMdqlqJCK5aELUNj2xniAKXIzj3WCVEw8HzqWAsBpq4l
	 9Il/BaFoaz1j1lG6ZOGvGdZjnG0Scp5zWI4hBAxD5KQZBt5cyMKDc1nAV6MSacngZXfRa
	 K7iU/s5AjcLtE5k1HWIw68XIlnO6vihWJNZHS2pIV6hRVcNLfAJYNnP/R78Ma7TC0UG4w
	 tqTaR/41ZYo12xyGLlyqLvoL89Gs9nlrMyJXhIPQ+mHX/83Fo7cK/3oOSK4+oli3S+nZ9
	 KFYL0h5AX8VV/od31XhLRIz128nRUIYvQ6PXuaAK8zYbzKt0F9EX1rgDjKSxy4Cs9qQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794682098;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding;
	bh=wJeD6WjT2Jh3rxkcUj1K4xIZFxeuj17LydVuBLNyvzg=;
	b=f5ZV9ubwN3dmxG40K3BzrLM5WNrxN5Krwdo359JsZUlmaBxsVyhavAK4f3T724sDYUpe
	 TO6KRL/GFAetXh/jFNUUn9Cgnn5pr3aDWwiNrwSrY5SoTBaSnW13CDgGC9ZqOKtS/MKtv
	 D0BCBHTwMvCTbUFexXtO0DrXwSiuBvQOQ14ZT1a3lc3CYnCwB4hMfqpMevFT7zvvfKgFS
	 UcnnjCXCcojrzWr9m/Fx1JPqmMUNzExLGt/QMY0wEOa2oyzYbBzjTTIO30QcR9XqPpYgh
	 +dgFza0//y9gg/Lwc1rQaeDG7yYdGZyri7QRE6thMK+UcPVoLa9qLKhQsMKhPs6ymrA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=pwNnJz8k;
	arc=none smtp.remote-ip=209.85.128.53
X-Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5F9E606A32E
	for <git@vger.kernel.org>; Sat, 14 Nov 2026 18:48:17 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B5F9E606A32E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4bb61185057so5163335e9.1
        for <git@vger.kernel.org>; Sat, 14 Nov 2026 10:48:17 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794682096; x=1795286896; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=wJeD6WjT2Jh3rxkcUj1K4xIZFxeuj17LydVuBLNyvzg=;
        b=pwNnJz8kRZ/CIs/G2OXlbuUw/rWJEWeY5Yv/THw+rkr1gsn3xmOSLwY9JvUMueeZTk
         PWHbbg6NC2O30i/nwf3SejQlhdcE3QqTACIowTxufNIQ/ENxXjNDWJhzkOg04sdj/qJz
         VPr6zYoT5RbAa6q/pU4jGQv/u4nj8vi8dvtXEQ1MhUHzSIQi+QCUo0/70qTjxPjG1vla
         Eilw/I0PJA1+kK4FTPA4EvutjdaPQcdV/bGoahsvsxSfqBSiH3p9GocVarLJcodYDh7L
         z62sXGyHhuhEKSI5IISAaDgd83lqpGcZAyvhoGes3vKBRPA3HwFF6ZyQH3V/K8+QnUqC
         vJPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794682096; x=1795286896;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=wJeD6WjT2Jh3rxkcUj1K4xIZFxeuj17LydVuBLNyvzg=;
        b=pTq7BIW6pgbo5grB1HT2rqT/ECk2cSInuuGaCbUpCqlglPfZ0fJ52dKU5d6RDu+4/F
         QtUXQf+Hk8DuSSqqNrd/YNzGedE7y23U1QWO7vw1szv2+ybU98C54TaoU/vh8SJQZHOA
         FLC/VR8QTpd2ccvTLh5T3xSq5UVPFO4VEhgiTirn90gRbI8rZmEo4XzwiOgjgBUPgogw
         LPj5afsDiHiR8wli7HNBGCxQ3m/ehJ2OMOJ6RVHzwl3AmhGD+EdC+T62S/PjVeM8+1tr
         uXYGKCBB8pmAZyHRLve9SK6RYDmVu3qIfsnUB8VTCvj9P7ZbEOWMd8N2sbxxZvK1E2PY
         HSAg==
X-Gm-Message-State: APuU4Z8PyJ3ySmrHQHd6wHLiedYbz9d7rJBsJulkk79cYMT2DZNpkWbj
	BTh3Ux4nmcAWrXaU+SKvPQ/U8UX+FwL0G6tVKiuw4C6k59MR+xPN8KMuO+QpnNK+1XI=
X-Gm-Gg: AYBFou2ok7Ia+t5VZ5nyZ/7wHgGsYUAGi0S2X/iRQ6xeNb7SwMReF0PHR0nVQLKA3/+
	Sjo7Fiw1g+y4iB1yUO03x3Fw0y0HKTKOt5s81YXSnrNkISg1izQ7+aFiflY3Em+XUchBkzcb9ig
	9LWKMuCLbul903sQ7tH3koDAmIHefSmBS+I1RrIdNC9kXy5iQV20EAnBrKbxoLjjlZL6QPji4Sa
	I0fpsdZ5bmAzNmiHz6F0HUvUa4q2V0d/jNJRPkIV8dPRpiDJQdo3Df8G/Lv5ry6yT59n7yGt5tX
	ZbT41yiUsSnEeXi7IPFD4X+5uKe1myWRDzyew91g8ToJHcD0x44Cr7NShTUkSm1XlHAoQrppzM4
	bGtqaLgJ8AVgIF4JAEp1BkkkS2spDaHG/wOdFwgoyCOsdSMaSNtkaTcfmgjjn/dJ/qLvoDyEbwf
	ECnLMYEA5+QSs80ukL6fTGCHMlRT/gKIaOy9F/f9shxpNAt1Rhxhteu/EAnUojr1vPTnUdv4i3m
	34rQDS8MSWlt087FspQRATm69fxWqzPPXZtyM7L+mRb/ar5aQQUL7QB9Du0LatT5qAAFFPDvWyy
	MLaHwMNkGbVjq1d3i2qe0DbbXylIa+/BuOGFTYZ7XTTrU6tBpWqesz2p25jaRwAVvG2ThEX7HSE
	d3AOETNrV7IbMEMj9li2qw8woz64ZP91J9FJmuXgTao/270Dgm85lriD4H/JRSRn8pKAyOjRH5I
	dIHfy8eKfneA9WRnFLsu4wwlV866qajd3z
X-Received: by 2002:a05:600c:630f:b0:4a2:1a:a129 with SMTP id 5b1f17b1804b1-4bb55aa6babmr121443215e9.35.1794682095978;
        Sat, 14 Nov 2026 10:48:15 -0800 (PST)
X-Received: from localhost.localdomain ([212.88.111.67])
        by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb55ac0e3fsm128620355e9.5.2026.11.14.10.48.12
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sat, 14 Nov 2026 10:48:15 -0800 (PST)
X-Cc: tangajoris@gmail.com,
	Wasswa Edson <edsonwasswa54@gmail.com>
X-Mailer: git-send-email 2.46.0.windows.1
X-In-Reply-To: <20261114184752.1417-1-edsonwasswa54@gmail.com>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list