From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.157 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796280927; b=u3PEVhmmWCOoG8zEILEj5GAsGBtea0jrDfxGvClhi0HGeI3VzT2/Z3YCFXEH3CVMKRoS Wk7glpsYDWr0qcii20jzVDIa12grU2EJD4f56yHP2uN29NUR0jtOOwUSNbngfzl8wn+vk ufek9lQ4U75eMefL3A+JEb7OGJN02JdixDwSqqU1A7pf4ONTgqFOhxYa9/JsI8GN9ZqBi h9vRrTW6daVj7SX/e1xzQn2Ot/OQ4lXmM8tdRTtIj5HKjN698SsoVp8ypjI4FsF94t4Uq VzBD5eCOpVA7Pc3pSNxOd2XYoUUIMoAtD1MZUuBghgZMYly8wpHL65aVpcR/PFMu8Qg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796280927; 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=qY5x1uPXCfDBat3M+sjjuqaLxmhul6QJA7c9mC8Rong=; b=vRlaubO52OvKeDdx8+HObb006jNo3A+Dok3Kh0hYikKdL6gMRocvjooy/oIRkpZbkzxR jmIPibFgyTOwH4w9CrJpKYP/Y5c5VhNWbX5Px2ffi2Q8/v4PRTeU7rPlDV5DreGC7PapD bD+IMUo0BEs6gjmW3awrx5FVyXkxxIPupgGiN1n+ePPgLzB896zI76Q4u4Fw6JA7VzREJ 8gaynJ/XBYLP2kaS1CwBIuQRrdBSBvSzMMgWBdUu8Zhl8TA3h4M1+ueNuUqTGB4KYBltR AZo699hzvPYnJBzv3A/Q6t/KbLNUHRhdy7bvdShjhGLLHzmakoFXNAMIz+ih9laoRNw== 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=knv1GoSg; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b="UPPG/4+U"; arc=none smtp.remote-ip=202.12.124.157 Received: from fhigh-b6-smtp.messagingengine.com (fhigh-b6-smtp.messagingengine.com [202.12.124.157]) (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 E87E0606A322 for ; Thu, 3 Dec 2026 06:55:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E87E0606A322 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=knv1GoSg; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=UPPG/4+U Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id DE1FF7A0257 for ; Thu, 3 Dec 2026 01:55:25 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Thu, 03 Dec 2026 01:55:25 -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=1796280925; x=1796367325; bh=qY5x1uPXCf DBat3M+sjjuqaLxmhul6QJA7c9mC8Rong=; b=knv1GoSgZyk7G327QqOP7ArjCW Krb1ziaVQKBQJzYwFeP/TsyBw3qhOaCSGbCv2o2lRhroasdegosAIxFd00IjzTuv HebokMpCxzGA7i1WceGQiEd8aqv+AS5STPTwffmhnlXd0A3PUJKK9JKQdvBAu5n9 dFNcZFX3du029W8wasUTSuPBZTMBzIyVbeq35WpH/t3JmUKJfNfFets3BlY/+3hf Y34Dk7T2y8x8tjR5YmHQFti4hEYQkh7hayAD1/S8P+A5VxpGh1RoE3UXjM/sqdpk g8dn+eTTFp4sTtGpXiq1BHTd3pFYL44QYiRDoI30M3mUNdv2JXjjHZZerrJw== 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= 1796280925; x=1796367325; bh=qY5x1uPXCfDBat3M+sjjuqaLxmhul6QJA7c 9mC8Rong=; b=UPPG/4+UgeuGWlikpI7kIzekCJTe5IT+S4HaTQgS3IhA+Jn7Q1A uEH0Jludon9BbgYCmAbDIpSNZEtvAlye0G266IMoueP25o37Z02EXk1Hs+Kqewqb gj5lBUUP7PMVCP2/cZLWMU+IKpF+0IgssDBxb3yvuSwlPvg32CHwPaSEqZVQQcRg 3LPAEHL7HJ6aUI8fPikuBXA1G1yQs1KfzsixdYHR47FCB4WX9ki9oRtjMQBl15/O D3p8MRYz64c2kJhXc3e/UhUc+X7KTB0Nq+/1qTObJgrzs19hL8aU2JpgwKbSu9DC 7jPEHSr8FNq9MNX2s8pnrgYzZB8kMrU+D0w== 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=1796280925; d=pks.im; mf=PHBzQHBrcy5pbT4=; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:JjKaNDFhZvFNDFuJ1OSVeqS3CTBVe5HxQ8y5VYxVg3hX5fl D6+qXqdXg7IXQgp+PY206fzDrKjZkBs8EkDaw/Jzup4f3N2a/uPmIUh2ozQ6tScm DintknrWeUpv9zSkYwD+UpUwUN4smujEyBnEkRQpQMD+7d0EyRX4ciZtVMT97W/G yoQUelrfbPrQr+T3DG+POfk20TwZtIawTotoAvCqa+FBOHRcen4bel9Z256SYKb1 9mpNN4fcaNLh2GyIrtY+h7N4SF7/jO1lRnUwyrPFj1k8MQ85S05MH79P3HXysgkW bkxYc9Jv9/3XcR6DiC0r7PfZJWkZohGRhdGw30Q==; 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:P8SGm+EhZWqRpkaJ6SOQ5nXzgVG2OtGVK49XAnrB4Kw=:rglJTFHbYVBJiyhjGQYDF52MUVrw8171i3AtkyAEkxs=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTE/mhZtTiD8lS+/hcXSgXqi7wPAwErOYdRkaFY5Ch/lxdTtLeGPv18Zm9Mbb4lk+n 8HeyKIMHPnz+2zuNlQfwio+zqJlJ3ZeBy9SFHNZwNWvGSbxfrVOYgtUK5JS3hWz1dYbtSs 3wFbJ13kqUeNWYI3NPWZi+EIwtmPPbbgdHi6tu6j0/e3ZePsr4UdE/dpRA+2RrS4NUO1iF lZc+8NopXKkAOA48M0rVfgiXOjupXNFYS04la0Jt/FWdWL1Q9I15G6Z7gIJi4VjG8uv0FT j7qbBssrXy0wtgJP1p52DfoKWeS2bMjl98fknDE3E00ETtXLqcnRYWLsVDNY3BVXKpuPUM jL88k1yru7RCHc6iBXdczJfZr//tiMqCx4PXgiv05bRdqRBYojZH/+4ydy9xlczO1IKxcI lt0v1gnXNet0SxfkofaTWSJP54i3KD2Di9UbvoS+DKRov7WT0E7leBDaBzUObisoH+WLkG b0tbpcOOHOfyMtq/2DJrYtFepjOAZAb6ne2gzpvdlPhy6TydG5deuUxVwEslEfqSommung VKPM2TujlhGNuJT4zfPG6Zj/D8WS2nnAUPl2SV+T1T0DmLCZErLJyo2hGYLPKNmGTq23Rk AaxDtk02ngt58OT4wuauzJtI67MUJ9ShvqSTGlIQcDlmnVH4a5um/97wnfBQ X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Dec 2026 01:55:23 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id cc1223aa (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Dec 2026 06:55:20 +0000 (UTC) Date: Thu, 3 Dec 2026 07:55:17 +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 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. Thanks! Patrick