Article View: linux.kernel.git
Article #643Re: [PATCH] refs: fix loose-ref seeking across directory boundaries
From: Venkat Ragavan
Date: Fri, 16 Oct 2026 03:19
Date: Fri, 16 Oct 2026 03:19
48 lines
11143 bytes
11143 bytes
[Resending as plain text after the mailing list rejected the HTML version.] > I realize now that I didn't read the code properly. I didn't expect to > see a loop encapsulating a call to test_expect_success. That explains > the if case as well. Thanks for following up, and thanks Junio for explaining the setup. Since the loop intentionally exercises loose, packed, and mixed ref layouts, I'll leave the test unchanged. On Fri, Oct 16, 2026 at 8:47 AM Venkat Ragavan <mail2venkat21@gmail.com> wrote: > > > I realize now that I didn't read the code properly. I didn't expect to > > see a loop encapsulating a call to test_expect_success. That explains > > the if case as well. > > Thanks for following up, and thanks Junio for explaining the setup. Since > the loop intentionally exercises loose, packed, and mixed ref layouts, I’ll > leave the test unchanged. > > On Fri, Oct 16, 2026 at 2:47 AM Harald Nordgren <haraldnordgren@gmail.com> wrote: >> >> > > The general idea looks sound. >> > > >> > >> + if test "$storage" = mixed >> > >> + then >> > >> + git pack-refs --all || return 1 >> > >> + fi && >> > > >> > > I don't see any reason why a test would need an if block, we know what data we >> > > expect, no? >> > >> > This is three tests implemented as a single test with a for-loop >> > around it. The variable instructs the single test_expect_success >> > to behave slightly differently depending on its setting. >> >> I realize now that I didn't read the code properly. I didn't expect to >> see a loop encapsulating a call to test_expect_success. That explains >> the if case as well. >> >> >> Harald
Technical Details
Message-ID:
<CAFuK-oarU1rZOcDzYr=YA1SNvfAzyB6LaXXCjtZV6WWGswOnyw@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-72194-linux-kernel-git=dewy.ruReferences:
<pull.2258.git.1792067455341.gitgitgadget@gmail.com> <20261015133624.82112-1-haraldnordgren@gmail.com> <xmqqse26n5fa.fsf@gitster.g> <CAHwyqnWX-3NXtFkKZvKeGweNqYFOp+A5NLgf+aO2iuwg_c2t7Q@mail.gmail.com> <CAFuK-obau8UkmVVs0xkuwjddkqftMxwcGnGR640YqjswGrTj3Q@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!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-72194-linux-kernel-git=dewy.ru
From: mail2venkat21@gmail.com (Venkat Ragavan)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH] refs: fix loose-ref seeking across directory boundaries
Date: Fri, 16 Oct 2026 08:49:38 +0530
Organization: Usenet Network
Message-ID: <CAFuK-oarU1rZOcDzYr=YA1SNvfAzyB6LaXXCjtZV6WWGswOnyw@mail.gmail.com>
References: <pull.2258.git.1792067455341.gitgitgadget@gmail.com>
<20261015133624.82112-1-haraldnordgren@gmail.com> <xmqqse26n5fa.fsf@gitster.g>
<CAHwyqnWX-3NXtFkKZvKeGweNqYFOp+A5NLgf+aO2iuwg_c2t7Q@mail.gmail.com> <CAFuK-obau8UkmVVs0xkuwjddkqftMxwcGnGR640YqjswGrTj3Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="2676507"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:XBmCx7U0PI9DnnWwg1pyullvKS4= sha256:4E/IU19Gm6X+UbPFSjpIpjaMW3KT5quKqTMbxdwp63w=
sha1:K26GbUfPQiGswQvlsWefH3LCqeM= sha256:7CcKOMqk/R01i61H5lAKL3DoR15d4lybQIJGutQ0cBY=
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 51B30110457; Fri, 16 Oct 2026 06:20:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 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.25,
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 94G3HC5cQyBK;
Fri, 16 Oct 2026 06:20:35 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-72194-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 64C2411042E; Fri, 16 Oct 2026 06:20:24 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sea.lore.kernel.org (Postfix) with ESMTP id C75FA37CDC; Fri, 16 Oct 2026 03:19:53 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id A743B35C197;
Fri, 16 Oct 2026 03:19:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W3nSsrXH"
X-Received: from mail-dl1-f45.google.com (mail-dl1-f45.google.com [74.125.82.45])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A24F350298
for <git@vger.kernel.org>; Fri, 16 Oct 2026 03:19:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=74.125.82.45
X-ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792120792; cv=pass; b=oTC5QTZd0jAA04Se8K5P7CS1xd9coo72ooBeRGcIRdOApFicQJgfCL+0hruMfqkg24LkL4YWSnrNoPz3MrTbPsLUP4RqaO+OLqXK+87TREQYuXLTlDu2HIO/VbrOKSgoDsnYwsxx+fihiV/A0nB2U0mpnoMh+YtN7RUyUNEg7tc=
X-ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792120792; c=relaxed/simple;
bh=KV4guPWBodcgpG/mH5qncBeRMNzrkLt378fZ+fE79Jw=;
h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:
To:Cc:Content-Type; b=WI1Asa5GpqgD57rvpPcyxjCMSrsbvvhYlpsmQP2TGIfjvyoCS0GjD9HuhRdqdEVDMTKjaz15VcoQDDOLJ0LXiX08/1/bEFDCDUMMYOrUPlBikKSLaDVLNoI3yCuLPl1PpCV0v5oznNMPJHnaDz06EVSSdxoaIUV1x1TA+BDn9gE=
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=W3nSsrXH; arc=pass smtp.client-ip=74.125.82.45
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-dl1-f45.google.com with SMTP id a92af1059eb24-1419d3416ceso4870120c88.0
for <git@vger.kernel.org>; Thu, 15 Oct 2026 20:19:51 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1792120791; cv=none;
d=google.com; s=arc-20260327;
b=gm49hhjOPWEanAxioK7C7BxZjywiF+ZjqHXOfRevy7HgiCOBAJzLsmR0mAjkrIO4Wz
m+T7B4GrCQX1lgYqYek4jCUV8XSw+pTw3J5/122TyXC1pqOtbGHDhsrPrgRr/PD/BjHO
HIi39A8jxySdHr4nTSSl0TFVS5aRcgDm83MHANpEQnk+s17Ax9NRWIO9SUiLEwpONOXG
x1A+UPjwYMeai6lASkeF17hTKNMaZ5rxIccuMADF1TfPj64SG5zlMnlUsQS46YHRxDNH
QMy6Nf1cLLIF0xE2+u/HwSyHkvPmDBjiAWh3PzJlYM9w/jvcQam5a6B+ewbxlF7Vw38F
RXfQ==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:dkim-signature;
bh=bCOSKoVfV7Z44XkrvZVVb5srbRvBJQXTmFJg83KEouw=;
fh=P8ybVzpT9aE10NOVqSs39E3YeinjaU01S2GYVMjDXRw=;
b=iSYIjKf9QsZ7gxQmqxgiraQLBOTO3ZPnW3GBtNoOZXyErFTeVw6vGD9SCOVXl8l3I4
21HXEOnAsuVdk1yTl2/oUg75N/ReyWM0CbwZc4Rth7iYiLcgPGS3pw4/sKp0N+khGgH6
JTHEc6Grt76j6sqLYkEDnUkaDTl8hSIhvUz5B6y6Ky2XGXopbZOzGoG1ejs0QON1F1ID
yIJbsYKsuDWiguX+aCHKr4jlr9KQmbBah2EvF80dEXEVC9MVmBYBEP7ynv+PFZ9KGPxo
oOUYRWzQSI7Yow8dQP1KinMTp0ClbTd5MD39LmzwzQ5Cds6rpfwvz5yQEwQYvJovDzau
Sh+Q==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792120790; x=1792725590; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=bCOSKoVfV7Z44XkrvZVVb5srbRvBJQXTmFJg83KEouw=;
b=W3nSsrXHGKtiWnI2kbbnCbYClImbNRl+amBju9xCpI3bwK+DBi2CsEOGEJdjnxUhW7
9Pfr7+RZQLU9WkwihdOweJ4TBEncu0KQvzW6R/DpUQjm0UYO/fRAvTy4kG6Rq+ZdcwYU
mEVX8vNot/5dLsLGOgbGUwEW3/MLZiDwB8KNxxnc0siVNh4W4UN2y3Rg2O5Uuj4kptQH
b9et/aTS6xJAXgIMSQc99YmKmNPm2mwNcqGt7bWk2FoWnIxgnLovgXeCbuKVd6mLENC1
8dUm/0c+875BgqyKfgz5SSU8CPjbuxP/SYrn5oKTYlHqkSY2XWiccY/nAsEygX3jkkkq
VOWg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792120791; x=1792725591;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=bCOSKoVfV7Z44XkrvZVVb5srbRvBJQXTmFJg83KEouw=;
b=yHa0p4S4BDR5VSb7PLXsAJYfa3Kg8XrpVKOP5X2L72od/bxilNjUEa5fJmWeeFtB6K
gmLyLjCcdBkULjNZ5q7d+01yuyEZybUcvgHiNu457V9TRajW5Fuc2vFgfnYS6R9U+GNf
X/Q7pUOnK1UkaliZL5nyXWql9VtpukHeCTvBQp6ERMGv70BOBopEfOJDqwQGZRGni58Q
xjlVyMQrdCutj4ryglmwq23TL7BAsqVOiT3NET20kiTNJrS6iwvBL13aCziGSM5GI/ED
VG9tc4CurrCRoVOyIVl/NjXAfWLs9xc5QHbYlugdP6sGsYbd9b/8Fc7VNB8XmV8WI21n
CqHQ==
X-Forwarded-Encrypted: i=1; AKwUvBweJIn03AUwUoe7S9/1WMk/Ot5WjU4xqnGMceRIcco03ljDO5inKBVz5lWRi9St/vDcBnc=@vger.kernel.org
X-Gm-Message-State: AFq9FYLtoy1YL8qcw31mHLhrE3PPT4DcpwC9cgOxcoFJa3QUCfWT4rKP
uMo5unDmMSI9aFiit9KMyiIp9kSS1jLRKJkZOdo4my8QwvPk38cQzv1egGwexHOL1KGO4EoR9dM
JxqReUpSj7mXtAHOfnOeglFeMPg1/qY0=
X-Gm-Gg: AYBFou2j817huZSfYjcvi24s/CtXYTrvCOiFC5zfpluY+9EYusnpqr/1SyDKjynT1Iv
acu25xRyE3/gY6LE/rWlJMeHMdnB3VzKmObeIcap09CdXep9whysfj9rhJdqUPYQ/OQ1ZEevlyt
7sP3/n/3uG0wQTTsvg35lMOt9mC2kq3IfuICf0eF8Nslh+OewZPezZzDqk6tVRCK8oi0Zmlpwrk
s3b6PVOdAOspcOb70HrjahqxuLGbwrmPJlRlhxJ5ARkTGJVJ11jSrzAa6JMn1kVvOB8LYEFmKDg
W0hbffpqhXkGZIcapHzAsG7IfZFPN2KrMXQtQQdAsuM0sZkNZWue+0DkYAEZqvj1+BwrHeSf/Wf
OJnAnBlXoHU5PS5+ZOmXf0hyrErBHJ7qfoKpKu+4xo/jL/0riGcG+
X-Received: by 2002:a05:7023:908:b0:143:8860:afa1 with SMTP id
a92af1059eb24-16a63386a1emr31786141c88.46.1792120790494; Thu, 15 Oct 2026
20:19:50 -0700 (PDT)
X-Precedence: bulk
X-Mailing-List: git@vger.kernel.org
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-In-Reply-To: <CAFuK-obau8UkmVVs0xkuwjddkqftMxwcGnGR640YqjswGrTj3Q@mail.gmail.com>
X-Gm-Features: AclHuK8TiwUBzh_Xwh9kDuX1sG0T8P98YMlXnnJwulyioI1RpZcprttloH7_xt8
X-Cc: Junio C Hamano <gitster@pobox.com>, gitgitgadget@gmail.com, git@vger.kernel.org,
karthik.188@gmail.com, ps@pks.im