From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.148 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796281289; b=FK53KBYbJtDssCOzYBNRPGlFSxagqyN0rfwdjVXUGmfkd5XjUT4VCVfLYq22+HGhPad+ s3Nk3bJrkyQjQavecD1lsLWQHElyFC6ex4mXP5nIudVtxxwB91ovAECeQ3zcy+PcLWH1S fnQwmNb7siI97YWNncqqp8JgK1jFHUxGBMaUidYt7ORrjzKRSxA1zOC3qStD+VhHe6Dak d/WoSNj6o190yG7iTFJnf2G1MR5Tqd2InbgoiIb6xqryZzz9quTwdh9pUftd3RowNdBbp 1WAHZ8EjkMK5IdW5uEAxHy+rQe316joEQryhLlBP4NdHGTc3fgq2wsFEOKCWtNZf+aQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796281289; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=u91Q+BPVmmAlVy248aoCZwz8dnKYrbOt7zprtiEsFZc=; b=P8Nue7CIDJzk4D3GtTWEwc8R4XDZYonv+JxmkJ8rdmu9Xkziqt+q2ai/Ny297AckCTqr bHGTHwTlTY4UiIxaodkGS5Btk8DKEYNbxGQLkXOOE6iR1lHRnEtCLMlTqocm9yFF5s48h dxHo2XmN0A6dj24ani6kV+4kVjQiRtj+JXhylYzl7NlgWkFAbwsGX2Zz3vt8uGRXiXuTJ zXZ3RvFRBB+fOu2KfWLBDwzc3dSQcEtTUf9c+UKsBbF+apZqrWDau0mMyIhP5Fp/VCucI BdkmbpqvG92lFRTwnj0uvy5EkSBT+uCcTtDxsgcm2HoBQG5Et8rF7gqKVStyo/0rewg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b=ab7MPjfo; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=02P7FGms; arc=none smtp.remote-ip=202.12.124.148 Received: from fout-b5-smtp.messagingengine.com (fout-b5-smtp.messagingengine.com [202.12.124.148]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D78D606A322 for ; Thu, 3 Dec 2026 07:01:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D78D606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b=ab7MPjfo; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=02P7FGms Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 9E40D1D00245 for ; Thu, 3 Dec 2026 02:01:28 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Thu, 03 Dec 2026 02:01:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1796281287; x=1796367687; bh=u91Q+BPVmm AlVy248aoCZwz8dnKYrbOt7zprtiEsFZc=; b=ab7MPjfoX4BJOvJOMNpILprjzm GuARmyJWyf2cKLlRnkVF2QaBOy+BolRHvcdwWWk+kY1JU4Yaicytfel42s6XLrEA 8u2QZhROt+uRpAFHK2NWGi6u5FYGZH4ZEZE3A6loFj7wQE2qRsAFG0mlNyHpnGP0 tNZVSWk2DK5xhH1f0ZrWpQ5XZUDjPXmdaT6tkgNjovLG9lmGYuoLgAEXkUf98Ule q/Z17VWFQlMbVkTOnrp/hAv8mfYBI/fTp/qKdUNRrSRagUv7kQhbQUCAC5FM8xD3 zXgo3rJZVCQO5ZLTGa7ot8zetDrbYWzxnRHb9wBEOUzCL1/j1MBlH8YXTz/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1796281287; x=1796367687; bh=u91Q+BPVmmAlVy248aoCZwz8dnKYrbOt7zp rtiEsFZc=; b=02P7FGmsrDBeLJN+asK8mUuWWSAmo/gFYdCkAj68aLiftk8vFD/ 8DcOYyNgalkCjfu3i3rFQr5gT5TXdbiin+vBFrGH8/gBYoDgDGBqlMh2sWo+NHOQ UechbKjtpFT5ESQqjAPK8YSPuuC08/wGElHSZD8DdUpiH5bjPpd0qK/VM48afD0l XEkZ4e060g7vtOPuJLuAtOskrmgVwBZ3QLSJpT+fGn2+xx0x0ckV35lu4Yp3FiTa hry5L9pJtm9g+lZGqYXUjr8eHdgLWe9slL9BhjJOOxuHMrPa0cz5MVMykvrpOXkX q0Ch6rqYALp3OWCGHB1s1407UkOwsT1O6/g== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pks.im a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796281287; d=pks.im; mf=PHBzQHBrcy5pbT4=; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:hBYs6OlNE0brcebUZPfU7QnXx4DMr//kKQI26ngj005eUTD QZwrWnFLjsUsMnM7+QpRgbZcFhD7KwgvHh1Im/kCezWazCepl0k+bh7QywUJ928L a/Ro2hMP7WBj2DnBc3rQ1+rS+gZ7zb5DdlboT2fbHJQ+8HRV+yYdM6x1LWtXWAay PfBszuKrnQVD9SCDLtLLwGxvpzOJR4XWpmbpW8Cf6CD7tGhjkGSbFW47PYNL5eP2 gV/sj3MF+kJ5uKkMQ15OBvaqIVKDjiz4PSGxFt24OOvPQh8gVsQ1VcfU6n1oB0An 2E5lbMoO0hpk+owQTCv3TOd1diT75uKbmm5JvSw==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-disposition,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:1q53HQ5RcNFh7ata6G/cF5Gc6qshWssZq4e/sYjqPO4=:M8myvOdZI4bx2IlyT8F4dqKVNY6wET4dSvBCt25XPQ4=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFroLJ62UANF5XydWJPfahdWqNuDow/jvgiKWYspHlo8JaMNxcrpkMg1eET7lSzB1 ishKuSx293lSkw2h9FB1Nod5kPeostujp/RgseueZJs3qevZJpbQMXK0dPZ1J3704XLh2H rIWY4L3uzH0t3CGftEa5nqyQ60HrL/OY7yBfaVBABbXekEJ49+V+8ZST1L6rargRQMsDyJ TwDCR1APMRTj2Pc1utl7gFdwFzKfx7PQp7mcVg5gvArjYh77Sg9absmM0HEK1G54MuooI7 eFt000ugoaSK25nNd9rr7u2dCHZhwiH9x9NEFzSD2IBhrp6PGheAOWsie7SOGJGrsd+dX3 b8oPBaTKjFf1sM/fi9O0dMeY3yncDL0vUwr4pwek0uAtQgeB7uibImhnoU+poLNf8CWXOZ f6BMslF5fxXjYBzq7j7cxhss/3SpcoCHz3O+ypJV+a9lS9AMvFGEUDoQltiKP3gftSXcES 2xJChKSd6/IhY8IBuwImG6E6M4WUTXVq0f6aMncSt0OS9eDSabv+izXLgyHDzeq0dUlLhL ilGqNdmaOAu6hFoChErwec/Z3p2ECM6IN5jkqMqFHEWv0tldyriXDGJ/zT/l8lcxEdvq/9 gHlUymQlcBcrL/CwG3ibg3UJ07h8K3ixi6R2OtNiFB2+UM79KhqVj9Q+zC0w X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Dec 2026 02:01:26 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id 5ea3e827 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Dec 2026 07:01:25 +0000 (UTC) Date: Thu, 3 Dec 2026 08:01:21 +0100 From: Patrick Steinhardt To: Junio C Hamano Cc: git@vger.kernel.org, Daniel Zoghalchali , "Mark C. Chu-Carroll" , Alessio Attilio Subject: Re: [PATCH v2] pack-objects: handle missing objects when excluding promisor objects Message-ID: References: <20261027-b4-pks-pack-objects-repack-links-with-missing-objects-v1-1-f50f90651274@pks.im> <20261202-b4-pks-pack-objects-repack-links-with-missing-objects-v2-1-23ad4a9a783e@pks.im> 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 Thu, Dec 03, 2026 at 07:55:21AM +0100, Patrick Steinhardt wrote: > On Thu, Dec 03, 2026 at 06:34:31AM +0900, Junio C Hamano wrote: > > Patrick Steinhardt writes: > > > > > diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c > > > index ca3a891dfbc..61f2d8a067c 100644 > > > --- a/builtin/pack-objects.c > > > +++ b/builtin/pack-objects.c > > > @@ -5084,8 +5084,10 @@ static int is_not_in_promisor_pack_obj(struct object *obj, void *data UNUSED) > > > .source_infop = &source_info, > > > }; > > > > > > - if (odb_read_object_info_extended(the_repository->objects, &obj->oid, &info, 0)) > > > - BUG("should_include_obj should only be called on existing objects"); > > > + if (odb_read_object_info_extended(the_repository->objects, &obj->oid, &info, > > > + OBJECT_INFO_SKIP_FETCH_OBJECT)) > > > + /* Missing; assume it is a promisor object */ > > > + return 0; > > > > This "Missing - assume it is a promisor object" somehow felt familiar > > in that I recall making a comment on it, and I think it applies equally > > here, but I do not see it in the list archive on this thread. > > > > Screatches head, goes looking ... > > > > Ah, I found it. > > > > https://lore.kernel.org/git/xmqqzeuwwmt1.fsf@gitster.g/ > > > > Are these duplicated efforts by any chance? Can we squash them into a > > single series, taking the best from both? > > > > Thanks. I won't be reading any more until next week (still in > > vacation). > > Interesting, didn't notice that patch series. Alessio, are you okay with > me taking your comment and adding you as a Co-authored-by? Then we can > take this patch here in favor of yours. Wait... those patches are the exact same as the patches I wrote, the tests match 1:1 down to the comments. Look, I don't mind handing over patches to somebody else, I've got enough patches in Git. But essentially stealing them from another contributor without giving attribution or even linking back to the previous approach is certainly not okay. Patrick