Article View: linux.kernel.git
Article #2593Re: [Outreachy] Proposal draft v2: Improve how command
From: Cynthia Uche
Date: Sat, 07 Nov 2026 08:49
Date: Sat, 07 Nov 2026 08:49
65 lines
13564 bytes
13564 bytes
Hi Christian, Thank you for going through the candidates one by one. Here is what I will change in v3 and what I plan to keep. > In https://lore.kernel.org/git/xmqqmrt7c1zf.fsf@gitster.g/ Junio also > said detection of "--" could eventually come for free as a side effect > of using parse_options(). So not sure an early scan will be needed at > all. Thanks for the link. My [3] cites your answer in that thread but not Junio's follow-up to it. I will add it, and I will change the sentence in 3.4 so that it no longer says bisect_start() would use the early scan. Whether it is needed at all becomes part of the question for bisect. > Yeah, improving the early scan can result in refactorings like the one > in patch 2/4, which could make it easier to implement a dry run in > parse_options(). Noted, nothing to change there. > The "must be first" rule also looks deliberate rather than an > oversight. "builtin/column.c" has the comment "This one is special and > must be the first one" above the scan. That answers the question I planned to ask the list. I had only searched Documentation/ and t/ for the rule, so I missed the comment in column.c. In v3 I will cite it and remove the question. Since git tag, the only internal user, doesn't use --command, I will take column out of my targets and keep my four runs as a note. > It looks like bisect already uses parse_options() but only to dispatch > sub-commands (OPT_SUBCOMMAND() with PARSE_OPT_SUBCOMMAND_OPTIONAL). > The sub-command functions indeed don't call it That matches what I see in cmd_bisect(). I will describe it that way: the dispatcher uses parse_options(), and bisect_start(), bisect_run() and bisect_terms() parse their own arguments by hand. A conversion would give each of them its own parse_options() call, one at a time. > I haven't taken a look at this, but I saw that Hussain Sitamouwala > sent "check-ref-format: use parse-options API" patches. I had not seen them. I have now read v1, Junio's review and v2. The points that v2's commit message addresses (abbreviations such as --norm, "--" before <refname>, options after <refname> still rejected) are among the risks I listed for this command, so I will not start a parallel conversion. I will leave check-ref-format to Hussain and the reviewers, and keep my observations from master in section 4 as a reference. If useful, I can test his next version against the cases I observed on master and report the results in his thread. For v3, unless you prefer something else, my plan is: the bisect sub-commands as my main target, starting with tests for their current behaviour, then bisect_terms() and bisect_run(), and bisect_start() after that. If that turns out smaller than expected, I would go back to the inventory in section 4 and pick the next candidate with the mentors, after checking that nobody else is working on it. Is bisect the right main target, or is there a command you would rather see converted? Thanks, Cynthia
Technical Details
Message-ID:
<20261107084951.617-1-herroyalpriestess@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74773-linux-kernel-git=dewy.ruReferences:
<CAP8UFD0uA+zF4x8WBRA6sGxSGX52Nw=GFBznzdFnX3SptHDUcw@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74773-linux-kernel-git=dewy.ru
From: herroyalpriestess@gmail.com (Cynthia Uche)
Newsgroups: linux.kernel.git
Subject: Re: [Outreachy] Proposal draft v2: Improve how command
Date: Sat, 7 Nov 2026 09:49:51 +0100
Organization: Usenet Network
Message-ID: <20261107084951.617-1-herroyalpriestess@gmail.com>
References: <CAP8UFD0uA+zF4x8WBRA6sGxSGX52Nw=GFBznzdFnX3SptHDUcw@mail.gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="4067140"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iumejp8QPbuGvzCn3nzwQMqvWBA= sha256:7c2vt+Td57Yn/vaUz5kvfulOoOyClhTnu++u3jCq7lc=
sha1:0rsgWg5ZKdaY9epNI7FaUoIqrpY= sha256:NxOLWNhaAgOkNSGtREW8gzQYpK4XJlqZ3r0SiYHlvQ8=
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 A6DE41133E7; Sat, 7 Nov 2026 11:50:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.453
X-Spam-Status: No, score=-0.453 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, 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, RCVD_IN_SBL=2.596,
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 5KSSIVhK1bRW;
Sat, 7 Nov 2026 11:50:32 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-74773-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id BF52A1133DF; Sat, 7 Nov 2026 11:50:22 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id 82B562E72E; Sat, 7 Nov 2026 08:50:15 +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=1794041412;
b=bvhQVZrWYjDD6GT0D0szhhh2TMYanUsEZMRn/IdADKmUEKllLl/RgEFC0axE9Md/KW9K
MQX7d8YEFO5PvvfXDX2JAO82EvH50AR3CAoMECtO6LOrrcc3J2TtJU1SnWEb+DhdIOEby
BWPk9jPz3FBvd7TfickgsT5Cmhk7ygkdg5bEZFC3RpCn4qu9FdbplI9e2AwUBAiFMoEQ1
aiwJOhEqqAAN11endFfb2JH2GyftkwlMDE1ZLDNQSNnzrwDId9CLfDLs2A4Q589BQB5fi
+KYEtCojflZhu1GPzWhds7DygxwSMih2V5lF2EKH1jEUU9lPOgsSDI0ktj6ibksrOHQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794041412;
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=awNIEBCtn9PsoqbdLjkT43NcFHeP7WzO0WxwxFS6PsI=;
b=jgOe132Ak81us4FSbBveOtec/jysf+S5eClYoIj5/C9JD4Am7w7WDbW9WedakX8IUOxg
sy6elGvaB9Be3kjldpd3V4lEZC6arSmOVMEHBP7b1xMdQFrYHB3dbfdF3Sn6pVDOrckjm
K2Efvf0/70GmqmGfGTY5pgD2Le/UG6QERftRXdV38K1Ai0gnDbr4x+60AXakVyBM2yNvY
Zrul+/WLxkPHl79wmrHJZOnbaLRi7/VlBMgBr5CdUirfFfT16iJObDjI2kh5Nn8HEl9zG
I0sB160Yf6Cjg4Co0DAHnWLbJsBZQ8s8EPaAVdp6HJkr1PM+fea0sjml+eRI/5Ny0Tg==
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=ByVEcOZo;
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 B7ECF606A331;
Sat, 7 Nov 2026 08:50:12 +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=ByVEcOZo
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.49
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794041411;
b=A5dvSJjYaYo6LfbEyUR1DAstGoTFJPPttfq4aMZPXSxnidbdnvgw3h7lHLbBNWcg73GV
soDUnxtcDyIR0cMf6R/2k1Dd/sepjxe/3l6079rIIIPF0j6DqyCBqiMc36oiIaI+pQdiS
Lmsf3lqW0ZF1lASlRNB7odGbDXJ7I4ac5L50nxsQkzX06YCpMO7GsGkQ22pLuzBGlLsmx
TkAkhQBnAFte/vf171969E35Z7AG8E9xX1lR1uDZm8YnfVQmtmTIUF38nur/c2YQP81Oo
whO0Ddqg37mvJovi5p7xC/kC+lnZF67CYA7rTNxk9eMOkrkFKB7cLC03dIQv/u/5ANg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794041411;
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=awNIEBCtn9PsoqbdLjkT43NcFHeP7WzO0WxwxFS6PsI=;
b=ROx6sY0ItsSs/UrOfwjOH78apbDjDCo734WxQtrRSJV1djjAdAnWWy+oFs8H3NdViAzI
NJUsJvFfk8lkwX8MaxRXwpS5iK0AK8xWsDlk+8Xsq2L4wVdSzEFEheYAMipUb9D2jYMWX
uNyBMzl+L1zzZFKIfvKvUoWvlZexDuH8yJTER5/MiJPJH5xbfmb8PYsAE+oDnajL6/AZw
f42XWEnVjZeFzwcMDpHY+eKnfe1FVUx2UUIBLsX7GnetyUII/hewPk9+aMxA/wj3mJZlN
Ux+hdgWxHDHRITn2XpHJfoovxGoYYH0D6IcPtRpg3zCtck/lK3ao5BFf+VKotBdkCdQ==
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=ByVEcOZo;
arc=none smtp.remote-ip=209.85.221.49
X-Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49])
(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 84380606A326
for <git@vger.kernel.org>; Sat, 7 Nov 2026 08:50:11 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 84380606A326
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-wr1-f49.google.com with SMTP id ffacd0b85a97d-48dee593f18so1105276f8f.3
for <git@vger.kernel.org>; Sat, 07 Nov 2026 00:50:11 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794041410; x=1794646210; 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=awNIEBCtn9PsoqbdLjkT43NcFHeP7WzO0WxwxFS6PsI=;
b=ByVEcOZobc8V1GEp8PGE39N2DxKuvQIThcyEUfwqRfLcZlh57wCpXi8f4JiL04K9J5
MrXP9GZhlMdFq5Fk7skMI4rUIxunMLgqRxpuutKLRFn/E50CPoFYTJmUfcdLwdw1Oa+Q
ObfdtttwFqhAxIbE0tnPqLKZnJ8fWMHnfDy2dyIDoS20LQwqE0m1kfJOHXNg+eg5xl8n
wKSPNp9C6XCcM4bhDH2lfch5YWkAurZHNoKTnHLS8/geRDCv90rBx0ch/DGyLx0j3KbK
aCNFQD5eg2NS9GibAgNSLaZXmzEfzsgEOamCg/ENqRLmsvUYFfeHd7lZH48m+wZUXEMc
nQ6Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794041410; x=1794646210;
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=awNIEBCtn9PsoqbdLjkT43NcFHeP7WzO0WxwxFS6PsI=;
b=WmU1pxsxgaWcE+X9OjIpqS9ui861lLV/AkrfkbBr0z/QQ7Il0UZ07tFk4Ri4ENpMRL
8FqXMe9dGFxnZobloe69uQoi/DARP7HbRIAH9gV4Dt1jIp+z00qX2mcykETso7e1R8TW
8bwPCR6pMBtbHZy6XTmy4qHBcKYRk//8HluWHbxG0Lb492VE0Oc/wHNYAfVyjxXGFTkJ
aeakBjiIiU25fpCo/3CG7bpeVikrFbJszqkjWb+YIMuJnWJS1lnDUTflfA229/zs8BM6
QZmJC39vWafT3NcFdVr4k7zWoa+aAJMbO9sC2V1w6u+F/7kxWlh00mRfP30lWXoqZbY5
/n1Q==
X-Gm-Message-State: APuU4Z+UTlcjp18Ni63k4yQt/f5uk2OWg+bK4ybJOvtqsZaqr3x+x1MA
eKacwnLKmxrRF8AvR5zT0/lE63J95a7qyFUH6KEcCfirUwI2dTZt7PE+
X-Gm-Gg: AYBFou2Ou9Rr5iwm2V/qdlLoQ476pCmch1BrZdzTov1FDyQ5EHi2CysIM3JJY6q0yi/
QlV5+DpvlW5XhWPt4LGgKC/3PBJ+Xh/AdbjZVth2udLgZyaRSQJFK9orC9mhlAqhZEPxY5+XEvn
FjhHJLrtP5YCPjaB0/9qGTDTtzgYbJwDkmsuyoZt/Sa5lYRXI3mtnk2/IkcPioyPaQGs0vVrxe5
Q0aTGTetUFw9K3XXY3MT+NzdjzDQJN+/BZWGugyZFFobBEPeXPd0S3v10nAMuwfVPCcNBFRvJoP
Sl0sZpk4tPnxr1O6IKU3XfQVdb+x8t5NuMOwaZJDXkAq1KpeCypqXk5yEJWQwljPOfQQcTL89/r
HmK/YXhbAZ8FphwT+HWChjGreU28qlnvi+AhDyAG1U8krPZyYezUu6TF/9rL9hTJ1XZwCF+tkq+
PEJ0pJdtpNNTyGTSpkpKGhWQZBRuFPKy0Rh/GK4qmcaljbjsJNGA+bt05QESaZXZFBfLAdcr8Xs
k3iOLEu7PLfaJK8/1VZRbaUc9LVuNOf6Pw6qmItA1IFCuXAkseodvl2hJOqWff3PwMCn8ABVbqZ
VhiUxaTVGlPmRC44qNWosWSk3byn/wZCEJOCo5nrrseoXae3xq3n
X-Received: by 2002:a05:6000:4b07:b0:48d:fd4d:7fbf with SMTP id ffacd0b85a97d-49273f500e5mr9381800f8f.4.1794041409656;
Sat, 07 Nov 2026 00:50:09 -0800 (PST)
X-Received: from GODS-GIFT.localdomain ([197.211.58.209])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-49354fc5ab4sm6016450f8f.30.2026.11.07.00.50.07
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 07 Nov 2026 00:50:09 -0800 (PST)
X-Cc: git@vger.kernel.org,
herroyalpriestess@gmail.com,
siddharthasthana31@gmail.com
X-Mailer: git-send-email 2.56.GIT
X-In-Reply-To: <CAP8UFD0uA+zF4x8WBRA6sGxSGX52Nw=GFBznzdFnX3SptHDUcw@mail.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