From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.48 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== 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== 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 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 ; Tue, 1 Dec 2026 16:46:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BE08F606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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 Received: by mail-ot1-f48.google.com with SMTP id 46e09a7af769-862b3938d98so5800192a34.3 for ; Tue, 01 Dec 2026 08:46:53 -0800 (PST) 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) 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) Date: Tue, 1 Dec 2026 10:46:51 -0600 From: Justin Tobler To: Patrick Steinhardt Cc: git@vger.kernel.org Subject: Re: [PATCH 2/5] builtin/multi-pack-index: get rid of `the_repository` Message-ID: References: <673945d65de346762178b675ad6d0de9606cc6ca.1796075503.git.jltobler@gmail.com> X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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