Article View: linux.kernel.git
Article #267Re: [PATCH] repack: do not rebuild packs on --dry-run
From: Siddharth Shrimali
Date: Sat, 10 Oct 2026 19:53
Date: Sat, 10 Oct 2026 19:53
38 lines
10386 bytes
10386 bytes
Hi Ben, On Thu, 8 Oct 2026 at 18:26, D. Ben Knoble <ben.knoble@gmail.com> wrote: > Just outside the patch context is the "if (dry_run)" conditional, so > this is the right place. (In this case, formatting with a larger "-U" > value might help.) Thanks, Ben! I will do that in v2 > > + > > + /* > > + * add an exit here, so that dry run does not > > + * go on to rebuild any pack or delete anything, even > > + * if the user explicitly asked for -d > > + */ > > 2 notes: > > 1. "add an exit" will stop making sense as soon as the patch becomes a > commit; that is, it only makes sense in the context of proposed > changes. Once those changes are part of the code base, the comment and > code are not adding anything. They simply are. So, if we need a > comment (see 2), it might be best phrased as "exit here so that […]", > keeping some of your original wording. Or we could be more terse: > "skip non-dry-run operations" or something. > 2. Do we need such a comment, I wonder? git-blame will point folks > towards this commit :) > Oh yeah right, it will stop making sense without any context. Yeah git blame does the thing, but I feel like adding a short comment for that Will send a v2 soon Thanks, Siddharth
Technical Details
Message-ID:
<CAGWgyh9Qo9J6A+PWpwiZoZPQXDv+fgwRkPKT-bZbywWZgjO9sg@mail.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-71689-linux-kernel-git=dewy.ruReferences:
<20261008062521.25505-1-r.siddharth.shrimali@gmail.com> <CALnO6CD9roPhKsYRVXRuZXQckTmbCskKmvxiUyxp6vkJ03S8rQ@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-71689-linux-kernel-git=dewy.ru
From: r.siddharth.shrimali@gmail.com (Siddharth Shrimali)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH] repack: do not rebuild packs on --dry-run
Date: Sun, 11 Oct 2026 01:23:48 +0530
Organization: Usenet Network
Message-ID: <CAGWgyh9Qo9J6A+PWpwiZoZPQXDv+fgwRkPKT-bZbywWZgjO9sg@mail.gmail.com>
References: <20261008062521.25505-1-r.siddharth.shrimali@gmail.com> <CALnO6CD9roPhKsYRVXRuZXQckTmbCskKmvxiUyxp6vkJ03S8rQ@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="1399840"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:VWQdKRbl6p1B9K+NMKopAxbAKxU= sha256:O+oX5EownbCYGw7FsoVAebujcGfI80li6Bg1PVkOfmM=
sha1:rMX+nr7e+FNJ9StWX0LT7Nbk098= sha256:/Yqof8peoPspfm615bvx+NUcOJq3hDS/oEE9o5kczfo=
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 4299010F957; Sat, 10 Oct 2026 22:58:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 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, 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 ZCd8OsTzx35E;
Sat, 10 Oct 2026 22:58:05 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-71689-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 5ADFC10F8F0; Sat, 10 Oct 2026 22:58:00 +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 326672B189; Sat, 10 Oct 2026 19:54:31 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 341C73F9263;
Sat, 10 Oct 2026 19:54:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dRvwZmkh"
X-Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179])
(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 A4B82386568
for <git@vger.kernel.org>; Sat, 10 Oct 2026 19:54:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.210.179
X-ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791662067; cv=pass; b=thoyk7ByEJ9Pqgg+7fzoOtQEKnzhOa4Zy2myurq/cvvAFnrp3Fhxw2ep0msZ/BO89qIlj2xEEnvA6LRba2xrZrvWPCxSwtOJcYDnqoznTeeOHAVGakKsgpR436cZZr/TlSafk2qa792fy9xuN/pvP0GwcwyzxtR2Fvvi3OQ5Vds=
X-ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791662067; c=relaxed/simple;
bh=wGr2vDfoAwBPeI9U0VMr7ruvofqS937cJ1wvnJWRAy8=;
h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:
To:Cc:Content-Type; b=scYPjls/r/7bUNaupMOpPATioRGHP03WSH+SHfisOy6+PuuoPOm3tI+/Llc7fHmz8raJYF/AiX3p6g3fCCZ2J+xXGqqFoHPSXxW664FoA3B9p3+zSjdArUcnL7ZVYbLT7m510i15n6z4E0ASuPwF1j7cVQs103UA6LDzMPEJDwg=
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=dRvwZmkh; arc=pass smtp.client-ip=209.85.210.179
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-pf1-f179.google.com with SMTP id d2e1a72fcca58-88b7d853b11so331668b3a.1
for <git@vger.kernel.org>; Sat, 10 Oct 2026 12:54:25 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1791662065; cv=none;
d=google.com; s=arc-20260327;
b=nppCRC+jalEl5y7KnZkrnbZ9vAM2AWHxfDz4271Tydz3yI99xOJaQiMCFLN9iKlNK+
LvT1rTMfFl5F9kzQcXNM9Cx01b/gCo/yzxirZNpAP7TJuum1ZGwIMtnlQrbTBejTyXXq
1GiHlZF2fcIJOUNyAOeC99y8j8urbZJUVUIpP8IDSpisFSq3Xr57kYnoY0+H0TkHJopw
cCjt6LnQBoPeO9/z7wOFo+wV7nnaj7h/9TGqlMfmMuWa179BJUrTaUwKFYUlsfLzIRXI
L4iiviZkYLKc0M6ld8EB+AWfJRFaw4HyGaeDdhQCowLtUYkr/B023t6ZLof+q76/zCeu
N51w==
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=ibE9Pj8klcFekAzacejAInQ8segxDCo4aGMnTc89aaE=;
fh=fyacn1kw0wgXorI5Qbe03yjprcbLT9H4aJmv52JUVhA=;
b=HWM2Z5uMpW2kCd41/7W4KAJ/IL7OwVFTNFdBCoszWMjlC0DSydRcK4Udro+5GOkTit
YD4QX+Mj03Z2OQ8erkn+MLogzfSVjg/WSp5BAo2bAvwaSzlqNZtf0C9n+zKmVF9LGz4I
sST8mA8g/FF5GNDhEDqU5Oz16I/gl5V2PofGF6lfp/3x6M567X/Eieyl+Nuif8ORmbrZ
uQYOFn+yp/Ju+0rFAtnSi9esv5wy7zoQ7rSJpvytFIzwZzjtDBZgnGK7euAdedjGnMlG
RZDrbNrLiVW2x4e4mWcW+eYq9wGtVLJVT8TGHRXngTWcmx5vqzMr7NY0ETP4s8xuNMid
6+vg==;
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=1791662065; x=1792266865; 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=ibE9Pj8klcFekAzacejAInQ8segxDCo4aGMnTc89aaE=;
b=dRvwZmkh9vl5f+CL1ai1prrV2pU+zQ4uMX+ZSHI2tV+5w9nor8uTgTSSCAb9XELzM2
7DnW7JyJ7Dvwt67SsYcykejwEU2zyuYMRDHaIhFZdiKCHYSAsKBYS6z0aNcNrdMfrK/+
3LNnbLstmX84JjpnxEvbtohY9rTCJvn6i5ETBX6xb02jypcmugXz2m1XMEHXf9XTI/3j
7C2MGLZ9Z3Rz4GB0rsphu14/85AY5UJZ9OSH6kX+l4HVWxHtXrdAW6VVL5x0Fqt5Ofwb
s6GJny/OhTQXG2UUdF6ADH473oEPM6QwUKoAs2kDQxuMqlYpNLdHuc+jev7xHKuHUQoS
0vlg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791662065; x=1792266865;
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=ibE9Pj8klcFekAzacejAInQ8segxDCo4aGMnTc89aaE=;
b=MaHs1hzXXoqFA0m/USex6RoyHWGezipaUPwzaOJatl+XjYMIKvGnIzKpD6vQImX0eu
gbvMvGfi6A4NcGaV7Ai/pwj0bNrQ0t9FJ/aV1CX93Afu08Vc1CooekiyaTLfxrgaXsoM
I7TeNgSvy5JJs/pO4CjaSQPWYcTWjIuhAf263PIZLD6/OA5fN1XqI4SCqlj95NfJLs0X
mST9UEwfug1IceRxdq/gWycnHFzuboKv7BJjW/jXDsuJKumqUTOeuitR84xtr5oydH8c
8cpTyBR4Tfc9smPMrjm3vptBpkOrcOA2jQu/R9bDpGHuVrl/QGgXrBrVqwZMwOABVWp3
LZKg==
X-Gm-Message-State: AFq9FYK3Ai9nlYf6t/2Dqt5gGGC0v+OilrFt1NLUGqsKT31JGsTJh2ms
pUMXk5RXMNXi4QuKCDXXSnBVt1BQllrWsDG+SjtQpVTu9qjwA4vS68Fg2fA4eErY+nQDagV+uYT
uUydepS7t9HRkRAicq8tRLJpiE0gcP1g=
X-Gm-Gg: AYBFou1CkfK5n1tkItAjKgnNSTZaS+U3gIhzsTtXn0if9QSupAdQw4Ufrcumv6pDIfl
fdPG97UBrs0vZgz2movanczhLC5W6YqaKojU9K94m2KwdePK7fNruDEWtUly1i81r+hgheNIyI8
dU7zN4FcXzgm4VZvrQRZUaoOgqfaEwkOXh5BZXFgWX9bwP8uzZo2hHAShH7zOW3VGlH1Hd0FnW2
31bTOZqsxGYJjkICuDMxN7gaQrcVej95BWjqv3FvkwbKtYlDS9dRtiX8dg3RdvK3rcNyQV5KF2J
r2MxWtswe8a4ZhACupdyVOjvurgTN8+G6gU8vfepscIn14GftB1F+Ho6L/z/Ki2SWQS82gIv9g2
Ro2gW/5IXscqA4ZNJDFpBNhYycUoZWYXXgDHW5F83n24txvad/uelKr6cgU4PzayoNB47h+JG5o
U=
X-Received: by 2002:a05:6a00:1a8d:b0:88b:72d6:b4e7 with SMTP id
d2e1a72fcca58-897c7add519mr4659733b3a.35.1791662064656; Sat, 10 Oct 2026
12:54:24 -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: <CALnO6CD9roPhKsYRVXRuZXQckTmbCskKmvxiUyxp6vkJ03S8rQ@mail.gmail.com>
X-Gm-Features: AclHuK8n3crsi8X_67rUIr6lhFruhLpdaSYrfFH5vcgfupdrbvkYMSmyQUcP7yA
X-Cc: git@vger.kernel.org, coygeek@gmail.com, Junio C Hamano <gitster@pobox.com>