🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #4209

Re: [PATCH 2/5] builtin/multi-pack-index: get rid of `the_repository`

#4209
From: Justin Tobler
Date: Tue, 01 Dec 2026 16:46
18 lines
11319 bytes
On 26/12/01 11:58AM, Patrick Steinhardt wrote:
> On Mon, Nov 30, 2026 at 03:54:58PM -0600, Justin Tobler wrote:
> > There are a couple of remaining references to `the_repository` in
> > git-multi-pack-index(1). The command cannot run outside of a repository,
> > so these references can be trivially replaced with the repository
> > passed to the subcommands.
> 
> Right, but only in the case where `repo` is not dereferenced before we
> call `parse_options()`. You do pass it to `repo_config()`, which
> (somewhat misleadingly) accepts `repo == NULL`.

That is correct. The repository could still be NULL here when running
something like `git multi-pack-index -h` in which case would need to be
handled by `parse_options()` first. I'll try to clarify the message
slightly in the next version.

-Justin
Technical Details
Message-ID: <aw74PSIwv5SLYbvl@denethor>
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76805-linux-kernel-git=dewy.ru
References: <cover.1796075503.git.jltobler@gmail.com> <673945d65de346762178b675ad6d0de9606cc6ca.1796075503.git.jltobler@gmail.com> <aw6oSl_-1eyDrMYB@pks.im>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76805-linux-kernel-git=dewy.ru
From: jltobler@gmail.com (Justin Tobler)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 2/5] builtin/multi-pack-index: get rid of `the_repository`
Date: Tue, 1 Dec 2026 10:46:51 -0600
Organization: Usenet Network
Message-ID: <aw74PSIwv5SLYbvl@denethor>
References: <cover.1796075503.git.jltobler@gmail.com>
 <673945d65de346762178b675ad6d0de9606cc6ca.1796075503.git.jltobler@gmail.com>
 <aw6oSl_-1eyDrMYB@pks.im>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1768996"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8cy1GIPgBtfsRG4FG6dyq6bWHas= sha256:WoAU4xMoNDKUqIQiejoP5NLayqBmbgW7BYM7JQTkD04=
	sha1:xlqDfDEyqiciwq5kSnSjj2HoQt4= sha256:w7WmzKZlUNMM7tOP6j0Ykwb7zvHIPgJTUXC3dEUuv9g=
Content-Disposition: inline
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 61DFE11741A; Tue,  1 Dec 2026 19:47:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, 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, 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 neU3b1cRo6TE;
	Tue,  1 Dec 2026 19:47:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76805-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 44CCE1173FD; Tue,  1 Dec 2026 19:47:00 +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 225182A9ED; Tue,  1 Dec 2026 16:46:55 +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=1796143615;
	b=L7wQ0qVOTIAB3Hd8e+nRRAPuuzz/qdIp3YFvxTK8EvJelVeiWXoHQ121QfjdFYL5QLpQ
	 qWjV95p+V5JNNPU7R0S+h2OmPmLw2ko+Q9/2VUylS980KBlTlIJJKwxVbBdaqLK1c5/xB
	 ewpJ3jD5IyLOBGWrWKENS9OkaZkuH+QnEiKn/9spH7ldp5atApeVuSEo7mVRmQHluqFaH
	 I45zFf4bsdmaciHgkF++ydo1ItpTyOsVpDhAQ2Yn50k1Zdq/4p6UmIzwGDvlASW3k5sQV
	 9OcTPm4b1lBcRb1KAK/fC8Otm/vmTdYgHLmIxN/0q8E86kwlr/sqauGn+YglI8O7qeA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796143615;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=CveirP4w9LUpYuijtSqHPGJ2zS9gTSDNYCbQJ9Nlwgc=;
	b=SU5NYheNTEoxu0iLqUIrdEGHWt9qa6re/9cb0RQiAtRspICWYcogXhvQao9ywotStKdQ
	 rWXnpXS+tg4F6RGMixYLXuX68GpzUPibXISP4qAX3s/Ar2EpcBDCRS0/i1Guw9ukRJEcP
	 pdO0WqVaWI0w4ReyZ1WwSXj9CdLvHLzT7vvo7dauVcvpAqAIhiwCAzl0YcyQ2xpvVYtIn
	 7LMeAHW5CK2jcEilKlN+KdgjaSxUAAPqVDqsZa8ERtq9jrVz/1uoki//5utpg9a5p4uIx
	 ThOoLpFCn7WUbtrTsqYy3p03jG7pVLItk2ZuZ4WHtry/71Um9LiAN+Vu6T3ecLAjNpA==
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="cNV/3VFQ";
	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 EB101606A32C;
	Tue,  1 Dec 2026 16:46:54 +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=cNV/3VFQ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.48
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796143614;
	b=AO+TSNNeAqNTBfnR1HgpizAFORDHYdKrinc7b2ZAfoGou5cxDwiJCa9abVHPlUcZAJdc
	 6IO6IlDqdkK+mRXCwn2Ou8mHYbi7Qjn+US8jFc/bK7LqRgvZWXZKBueYXYM8vrM7rH3/H
	 RpjXQaC5FeT7r+LP3u1qtUugjkWrB0icFw3H62holFWLwI0bvPFrGl5Zs1mUxbBESNDXP
	 i5o22e8eeyyh5ycKtV0Hz/Fy0/lFwpo0DuZb6xKy1lTm5LN5iv4W1ldgokxF/Vr79pcq6
	 VohPvMB360sUyEWgxVOJVwJIT9mySfUAC5bho8L3qdOXB1EVNGQLOEcS6VLqDM+0NGQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796143614;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
	 Subject:Message-ID:References:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To;
	bh=CveirP4w9LUpYuijtSqHPGJ2zS9gTSDNYCbQJ9Nlwgc=;
	b=wJ0gp1WpYv75YDA/ctbMglDkGpE8CVsVsRixq8r6TDIuf/ZFd9YzP+IvIVvODXmdrmHa
	 I+QuZhs2e+OhQu3b9EPuj76hWWy2Iy2X1/l9hoY8AAuc6MS4/CApMlK3J+bl29c4VgDoF
	 dj8e0E9TDLOgfWjtFpc7BNj2cCvJTIyQqa/mBiJfT5REw+YP4YWtgMejzJ2YpqHVcuNib
	 fVJEZMP8gxm/LU7dtEWViSKlJWo2Q7FMycHyJoPlVbgT514VXQ3xos7PrBp/4SMC6+TGT
	 XUNsU3xfE/h7cBjf/lWcIKbNO8gU9k7toPqf8LVB6ZpeAC6F0Ip644h1zSje9npWUyQ==
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="cNV/3VFQ";
	arc=none smtp.remote-ip=209.85.210.48
X-Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48])
	(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 BE08F606A31A
	for <git@vger.kernel.org>; Tue,  1 Dec 2026 16:46:53 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BE08F606A31A
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-ot1-f48.google.com with SMTP id 46e09a7af769-862b3938d98so5800192a34.3
        for <git@vger.kernel.org>; Tue, 01 Dec 2026 08:46:53 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1796143613; x=1796748413; darn=vger.kernel.org;
        h=in-reply-to:content-disposition:content-type:mime-version
         :references:message-id:subject:cc:to:from:date:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=CveirP4w9LUpYuijtSqHPGJ2zS9gTSDNYCbQJ9Nlwgc=;
        b=cNV/3VFQou4ckrgizMXLMtt4iXUDilWntdoMfRbOXPR2tty4LO1ayhe7BRv/YEzQKU
         4ctla+JIKUn5IsoI8F70zFbtoleRergkDrVRVFQW5EETe2sjvnT/wvbvcDn1RO5/Yz/v
         u6rluu7ruoaJOS0TAMed9taySz2aLBUu1sl7N+JDAR9K6iB+YA8YEGs0epJvURHUqJL6
         9dM2IDGZuSBy9WEiMtIvsoce4TNr8OK+m5PV3kLRXM8Gt/oYMS79mT3a858NaX/BYmPw
         xoSbOwC8LgWnrRgP+PupQOMoKNTTGW3qkOwQNB3bmK8gGV+MNLFBLTyOCfuBxFJPnYAe
         Hu0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796143613; x=1796748413;
        h=in-reply-to:content-disposition:content-type:mime-version
         :references:message-id:subject:cc:to:from:date:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=CveirP4w9LUpYuijtSqHPGJ2zS9gTSDNYCbQJ9Nlwgc=;
        b=OX/6wGwcn5Y1tBmUHSqAJ7SIK91gQXcCoONBHyfZqSNP2iDTtm2CTgEJBiwR2CQwi8
         5Ix8PkVDi45AZ8Uor8uSGFT2tH52GdkeAYWhnAnhSMAebyIU8LN8ULqv8x6c8B9zFd+P
         ROKAgLGrAcCrC4OISEOgutgp1AVQak1FXUlTxoEbiF9+pDYUZhXJPKbYKIdzYSsP682S
         i6LvLdJWg9crxwdkDm0OEd1rUy/BQtfJeKRU6E5fWEZg/GChk57eSZa9oYXJThgYToBB
         w7NAX+eiu1NgySg3zzB0qG2FeTmYlN66RVFbL55vrPnfDFWPhilBxNpQUt/Bl7kC2UaG
         0XWw==
X-Gm-Message-State: APuU4Z80xC/3zaQK/sl37a28F1tmf6sOzrG0CSgM8jolUdWJZOFeBl8K
	cUvfVBzFjBuuHDdJJq8KNgReuyn7DhmeXQP1g4742M3zSeWD1EtfbKeUSt5u5Q==
X-Gm-Gg: AZFdTZcM9cruCC7+yZGvq7scdlVNl9CSYvUzHP1B7mk7/HvfvQEBSxQ6g/l0LBK/znV
	t9oDJlZa5d/tnzsXudEtiZjMQYcixVd1ZRzz5qr5itKCtu1bWayysuMmagQbrSXDXyF3Sq3syn9
	EWqJ/8B1z1pM3CzS8VzXBf2TlxmvU9PTHzZ/9OU+flL4Q0nEpz82p4REwUiSRDp3cscGEXupzoU
	wPYK1C13z1KlU93B7kmm9PY5EdNT++TDd99UMY70OIBE52qZpFRoQxdOh5tal6J2RPfQPh9ksUy
	80os70SqwqhAip55lieVPQfmKf2XRK9auwLzG6Y7+dBcy9voAAiS1BOYjxv2juP/bfm+oEuCv7S
	QC0UX5CwyxR09rDzykLNYYmcdHdnUH3qaFX/5xCx/7QR8m4SlYIxzEF1XHpqNTZ2QlkukQB4d+H
	qaM/SXz6UShLfWwTspdXTZEHd8lXZ4QKgkMHx/kzXpq/TPYFw4tVN1HA2g/8MCNvh8v4vX9JZ5/
	eiAx3/QkIf7nUM4pSoKCNpGRGMrT21ju83Vf8LaP96HU8+Z/VpOa2AXqPCWN4vhryRNuc4+Dmok
	MVwVEx+eZcM6HpgDUn8adrzMT4JLx/3smBWwY/I6hAOQ8zYWqGvt
X-Received: by 2002:a05:6808:179f:b0:4d6:90f3:74a2 with SMTP id 5614622812f47-57a0c09bea9mr40531393b6e.45.1796143612637;
        Tue, 01 Dec 2026 08:46:52 -0800 (PST)
X-Received: from localhost ([136.51.44.64])
        by smtp.gmail.com with ESMTPSA id 5614622812f47-57a347636b9sm28315186b6e.7.2026.12.01.08.46.51
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Dec 2026 08:46:52 -0800 (PST)
X-Cc: git@vger.kernel.org
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-In-Reply-To: <aw6oSl_-1eyDrMYB@pks.im>