Article View: linux.kernel.git
Article #3603Re: [PATCH v2 3/3] credential: parse subcommands with OPT_SUBCOMMAND
From: Laveesh Bansal
Date: Mon, 23 Nov 2026 02:35
Date: Mon, 23 Nov 2026 02:35
21 lines
9948 bytes
9948 bytes
Wasswa Edson <edsonwasswa54@gmail.com> writes:
> This changes the behavior only on error paths:
Not blocking, I gave my Reviewed-by on the cover letter. If you
reroll: "--end-of-options" does what "--" does now, the case Tanga
mentioned:
$ git credential capability --end-of-options
version 0
capability authtype
capability state
> -h" shows help for that subcommand, and makes the subcommand names
> available to the completion via --git-completion-helper.
Also not blocking: "git credential --git-completion-helper" lists them
now, but bash completion still offers nothing for "git credential
<TAB>", same as "git hook" today. Is a _git_credential meant as a
follow-up?
Technical Details
Message-ID:
<20261123023542.88325-1-laveeshb@laveeshbansal.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76112-linux-kernel-git=dewy.ruReferences:
<20261114184752.1417-4-edsonwasswa54@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76112-linux-kernel-git=dewy.ru From: laveeshb@laveeshbansal.com (Laveesh Bansal) Newsgroups: linux.kernel.git Subject: Re: [PATCH v2 3/3] credential: parse subcommands with OPT_SUBCOMMAND Date: Sun, 22 Nov 2026 18:35:42 -0800 Organization: Usenet Network Message-ID: <20261123023542.88325-1-laveeshb@laveeshbansal.com> References: <20261114184752.1417-4-edsonwasswa54@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3773353"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:95eiLPdAKWyyYuAREl5I+++1NvY= sha256:Px5GTnsI1RO4df+fLc0v+6PHIigXJZWMs9WqVEhE/KY= sha1:TBGZf9aaB2g165ZbuvfKENY+3A4= sha256:08k/s57wA2tnkCBZH4+eMFTEJJr9XP3B4hvsCHsEb1w= 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 3E127125D87; Mon, 23 Nov 2026 05:37:37 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.651 X-Spam-Status: No, score=-1.651 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, 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=fail (1024-bit key) reason="fail (message has been altered)" header.d=laveeshbansal.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 UJKJi7TTbv4M; Mon, 23 Nov 2026 05:37:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76112-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=laveeshbansal.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id F2432125D83; Mon, 23 Nov 2026 05:37:25 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 8D8402BA3C; Mon, 23 Nov 2026 02:36:01 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795401360; b=Q3kzE09EHRtxnfw68Zz0lDx+9tI9VUk01yn/m4CK816OPoz1srJRdaWfGJDe50KSvD6C 1TN5kCjb3fkZPkeKgNIeoOeyxYBF+rZD2vOrOADrEK1F88ELZMWQYWDf6BXAyiNn8ceZv fiAEfoPN6kAEViIAGO8IwBa+3EqDDHOqs0AlPyLS6KdYbgQt8vv94Z+Xt7K+PeN+JJf8s dOTToW0g7P4F1CO53fxhJ9DSfD2jb7hiAC4EYynxw4zypgUgPAm5wCGNKm+mCj+pKaHRF BEcS9FCw/y/jIFsDPiwLhipP/1MObYXzQuOFLtvpj5jLJp6/XdBC3JhppDDix86dmyA== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795401360; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature: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:X-ZohoMailClient; bh=awME3iYt8MUhIdimfBXNKsYSfxe8yCNPooDbq0WLWrM=; b=BLqPB+hjdS9mJ/zptfalXYfDh26PssLipQaaTV7HuPbDYTELZVup0Op42pBzakreFF8H AzugFg4Ft7BwGlK8WBoqVEO/Gwo6yT6fkhsMgZ0kUEwsocfWin/iOBmKr+psTgw+ZHesH cPlLuhZ0C0MqMz10/3MQzu8zaMyGWHrjJYI1SE5wLP8vvQP7BFK7uywJCUWfcwvDhQ+z4 DFK5FLG5OMLT7MVfeGKrZPfqrZjJGUifoOL7CJRR8Acgrp3FR/Vo6J4nTHxdr4nzL2V5m JkFN0JkFXgvJLkmqJatxly5yMMyTEXC0gSYO12lKfz6PYzh0Fl3xyGGhEZOq6R/KE4g== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=EAjsbO+y; dmarc=none header.from=laveeshbansal.com; spf=pass smtp.mailfrom=laveeshbansal.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 320F5606A32C; Mon, 23 Nov 2026 02:36:00 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=EAjsbO+y X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.15 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795401359; b=lhWZ34+0K4j7BPsrecx+1w/wbxxDFi1OW5tWNQPTHs7wSPkNEZGF3Tcq2XjQ/pNNQqwJ w8jUtD+6c4DFrfsOGVWBpou6T93uBju3wNMC7fcDUM+b2SjYwslHWejIO6AWr5sgqkfiC VprUecX21asJvdcCY7Mu5NThAjLmApQXqj2ay8b9ULGAzAZIaIF710kG2rvY30Eqe+Aer Mj/+SU9KG8b1H+4ohC0OERAbKBvxrRI4jhXjJzGGe9H3bs4fp3TjiIwLTjJwXnfO4y21D 3v/ylwP6iD6asBSLJpy2Uh+tUJPLVVr+zLhzL68EuSjfVyn71ac2rtPB9NCep01DpuQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795401359; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-ZohoMailClient; bh=awME3iYt8MUhIdimfBXNKsYSfxe8yCNPooDbq0WLWrM=; b=niTsoBK9k/9WU0y78wf1XULoB5KhHaYgOf+FG8U85hhRsu109hVWUMb4OePuDFAxr0fN DhK1wusczmFcvwRjYarutOTLM8S8HISd0t4Y9cER0XzCMb5JrBPvHk5r5OhauGBrr83Y9 kcvM24RDJpO9YQrbc+x9igurMV3Erh2krzRE8ET+JeO1vO3DcYvCJrd2mTJ6dF6tWZVZB OprCmdCMWieOITlqAQVPmGfzpZElFJLs1Qb7LRPCtRAT+YyGydReEQEeoHLkL/jd1WKl9 4Z2zCywPZaek9z1nc1GGryRAa6narIQ3pXOaTp6ccr1de49jP+PKcZUrDJBrJVNnaRA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=laveeshbansal.com; spf=pass smtp.mailfrom=laveeshbansal.com; dkim=pass header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=EAjsbO+y; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.15 X-Received: from sender5-op-o15.zoho.com (sender5-op-o15.zoho.com [165.173.182.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1D8A606A339 for <git@vger.kernel.org>; Mon, 23 Nov 2026 02:35:58 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C1D8A606A339 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=laveeshbansal.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=laveeshbansal.com X-ARC-Seal: i=1; a=rsa-sha256; t=1795401354; cv=none; d=zohomail.com; s=zohoarc; b=BPxOs8X1X6AL7sZG1aOir/Lq/JbI2LdkVlzwE+R13q5WNnhehcTLZB5ZJAU6UhvRXUgUt8T77X4aRGXmei0SLQpkdLkmcFhc2qqYFYs/zn3XCnyPoUqblC78Md0WLH3nsGmnze+oh47fat0DaQw9ljNR8AS58jYza14IvtROek8= X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795401354; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=awME3iYt8MUhIdimfBXNKsYSfxe8yCNPooDbq0WLWrM=; b=YvjxrT0aaziKB18a3piKqpSMj+qLDja6eMuOAQ3GTSIp3ykF41eSL6fMIemQKWS7s5yJP/PXezIsSxPBZT6LQB3GcCGFZOlGnxxoUFljNpWgp5H0HHHBt8QwyVKX1M8pt2/drgqDArvJadtCQZ9ZoO0sHmh8Yt8IurA3TV9PMEA= X-ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=laveeshbansal.com; spf=pass smtp.mailfrom=laveeshb@laveeshbansal.com; dmarc=pass header.from=<laveeshb@laveeshbansal.com> X-DKIM-Signature: a=rsa-sha256; b=EAjsbO+yeAmQk6uF2amMpzNbeQ9rFmrT4Sq96bIpTrUzDOsRjQDIReIbxzpmMOdEL892tydMI1gVstW6ulrOUY/ICtjCeWbbvPQaKMb4qMBo2MraqH5SDdOwVMb95KLoOWoRK24l5FWKtuyHaeVFa2eoZenDzkntzYikpLlp968=; c=relaxed/relaxed; s=zoho; d=laveeshbansal.com; v=1; bh=awME3iYt8MUhIdimfBXNKsYSfxe8yCNPooDbq0WLWrM=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; X-Received: by smtp.zohomail.com with SMTPS id 179540135308225.929488927976536; Sun, 22 Nov 2026 18:35:53 -0800 (PST) X-Cc: git@vger.kernel.org, Tanga Joris <tangajoris@gmail.com> X-Mailer: git-send-email 2.54.0 X-In-Reply-To: <20261114184752.1417-4-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 X-ZohoMailClient: External