From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.151 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796304001; b=qCYe1iAXLBkvqvzVJC2hRCWgu6T1VTsVyEAZO8geMXnysJnf1aP+uPTSf3nfdqYooOET DyUatlvyLJlrhzm/snPCnWaZnnOFxTyUo355mlzOYKtVjdb1wF7qoLft926o5B0RLww4p GzUsNFhplTlQKhvH3P9taxlFFud/uFtjktQtHQVKvhaNaoOiiXSL0wQlFpCMkPKt3CdYt kjwB/srBI5TBZNuqPQbf+g2UlFYg/5rKQ2IR8gzd0zLBu/MwRC071/9KqVs1CtLop1x3K jzvxIj5Cj+GtstJUgu7FxMl111cyM+MRc/csPvxl0zKmRMTmm71ZkkpWn3hi6BJOlBg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796304001; 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=MskQUgJdOHH5w1HzxPyUS73vmEBitTZRS9M6b3+nzKU=; b=X+6ZnHSqA5iihMVWxt8k0I9slMCqLvnFHFQy3CoAKqmpHpPRNxmnGF8eaEJoiBQSYyfe bCON6Ekdzg/CmQcN473Y9+n8hYACP0Q57UBAwE0eHCz2CYHGgp41+X7/HKFd1t4V2wTvz Z3HqtFx5Jh9SS/XCkH/9nmNRtUp7oE/EvuhcnITabEBbCO/jdup8oVgGIKAFHwvNSMs76 GYS1Eo7ZqrWDnnYB9hbQ6yJfzUvXKAkps999SgR7W2s0efV1zXSYsrP3+hSlPr6iNLH+z q0nG7P+0fb+QqMm8wWT2vEIvL0ijb4DMFS3B8aS/gj85oNq0I2mi3GEAlUvkS0XCtwQ== 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=oz35j+IH; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=X1SRWIY7; arc=none smtp.remote-ip=103.168.172.151 Received: from fout-a8-smtp.messagingengine.com (fout-a8-smtp.messagingengine.com [103.168.172.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E974E606A333 for ; Thu, 3 Dec 2026 13:20:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E974E606A333 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=oz35j+IH; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=X1SRWIY7 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 40206EC1DAD for ; Thu, 3 Dec 2026 08:20:00 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 03 Dec 2026 08:20:00 -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=1796304000; x=1796390400; bh=MskQUgJdOH H5w1HzxPyUS73vmEBitTZRS9M6b3+nzKU=; b=oz35j+IHvSe/dzTcdiv+toExBW +jrdbLajsPhMbHS040EBOL9c81q9tNsNLrzR29J94k9hx3otRnWroNd8fB6boQ2i 3vUBKcdYDiqnJ7F5MDFlrcxZxsgZkbjbpsHt/5CL1D2/OZup29Ph1+1Fspiau8YK 5ecOE+TxgiUWvOZ0ee+oHfNKl+dKjKrGhn4qGizCc/nm5oBBTSXZfUi3aMfFdkZQ 5u6/tNyBlesL19XxLdhou/3zSUGVVt7r/bA8dMTPRzioXCmBnPQfbbsppCaadjGJ unW7c8wqZSS8GojZxVrzjxMYBqy7ImtgDKXMpbYVSOuucPlnAaG/9oizDn6Q== 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= 1796304000; x=1796390400; bh=MskQUgJdOHH5w1HzxPyUS73vmEBitTZRS9M 6b3+nzKU=; b=X1SRWIY7xzj+8HVpVcX3ziDBZqMo4+OZiFZVzm1zndvvb2W00h6 L7SdQK7xGR4Z4eicaRzt69TZW74KtlZ8HWNH6yhz6DnDY7bn+pEVmp1UIjaAEyG5 MQmlzApwLhdSu4+NJJ+xQqEbaxwVjVSfZJrgT0OQKdEQybuu3Imv4+/e2dGVHPoE jOnJAFQfXBja0sLcH0BKoUSpcHAyL8cprGTGgV91Dr9kJYOnJ/62FCyxjxKU1NDX n0YavvDKTJFwpDUfyWdaxM63Z3CYn3CbsKZ6H62bMxOofXnguuJqnOa9ajUnE0IU O+yaueE9HcATZKuCEZn+bU604RPDmRqBOTQ== 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=1796304000; d=pks.im; mf=PHBzQHBrcy5pbT4=; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:OVL0fCRa6X8v0ltExKv3SF7Hy879pdiVcMgnVWvpQVQ/xxM bPPiVqj/o6sG1LUxuU2QrbqcH8dE3tNniwKRo+Cw9A3TMR4b9e+Dma4qAhgkOngu O3uED4emOj7zgiYwf8gcr3j6QI2YasJWX0Dy9Xzr3VDr/xLF4+WhFmxDr9lI4MT6 gcVHKH3n5Uc03iFFpYQhjy0RVoB7aBGqo8t6iuBAT5bEW7qlZvdToXJ7/ReFDt1e BAksy0oQ/CWFPdPMKuxr0AgSB03MqLAWJu4Vrl37iDRU+gstr8ln3qpgdJn234ZG YQlOYF4+w9AFtxdNDT2kDakNxIKtHHAvOijn++A==; 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:bmGJJPPSMQJH34o1gIg0z8BEknEG0sR83PmD5yOWYFw=:zYCAabNAotVnHJfH9/qT3z7S2v1+irn/GHr2Sz9HsKg=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFXWjLeNrWlNbJTH829hpT8UbEr8WcuH2hWUhqqF7oB0llxr+uld+UALLgJto9g60 Ro5Ia7Gi39bgM6Pu9GFeHDqUnlVV+nzYWiCBUVPHEU7vvOvU+BpoD6R+NwaIMF6MjX93Fr gILe4yON+D/C9ANIj9NlakZoaX8/F9nAA2qDi0TXM17ZXY8JhbIEvB1VQ2xtTVvZCzD4Sz NWBuKDn3V8YxABGMokZL/0xb0STvrK7wcr5uN4b9SgPKOu5Ku5TJ6SqYALg/5dMGN+2srE HfExiKzi69MIAfMF1/xc8R2tMhJ33iivQwmwr0a/7VIUyDQbauWR55kCb+Bu4BAdcADWAH 7aslH/Llwst2Ebn3l6Zh4ZJ/LW+fRpuxTiKQcj2YN78HuKFTw99/EXqqh9Wh5NlQTXG/8d G1KVDC6vs8hV9YK8FiJZGoYxZIWdb3TAXhpb2h5qZrrf5b41qamPaNqdbcj37Z0QabW1MZ Q21wkA/vE5gneHFHD9rMH9YwCy6L2tQ98J5Aei13sQpgGVd6IwxLrzvK3rMgrsbmSgfMXS OBd2hehWyDz5FW/yjw9ehlLce8yeF70Zqb4BbP/Q9lKXc2LdC9SZ5d9e5MlOn4R3nz0Kyk 565a7HjFB+hDtsYc4vulCQcV1vW1yPsCB7QKn0Ntc0YYOJd9uhvmivfTdK4Q X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Dec 2026 08:19:58 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id 4b15ea9f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Dec 2026 13:19:19 +0000 (UTC) Date: Thu, 3 Dec 2026 14:19:15 +0100 From: Patrick Steinhardt To: Kaartic Sivaraam Cc: Junio C Hamano , git@vger.kernel.org Subject: Re: [PATCH v2 4/7] commit-graph: expose function to validate a commit graph chain Message-ID: References: <20261120-pks-odb-pluggable-commit-graphs-v2-0-31f2341a9932@pks.im> <20261120-pks-odb-pluggable-commit-graphs-v2-4-31f2341a9932@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 04:31:10PM +0530, Kaartic Sivaraam wrote: > On 11/20/26 17:52, Patrick Steinhardt wrote: > > diff --git a/commit-graph.h b/commit-graph.h > > index 8660c7fe698..dc4f6194c72 100644 > > --- a/commit-graph.h > > +++ b/commit-graph.h > > @@ -134,6 +134,13 @@ struct commit_graph *load_commit_graph_chain_fd_st(struct object_database *odb, > > */ > > int commit_graph_link_base(struct commit_graph *g, > > struct commit_graph *base); > > + > > +/* > > + * Validate the chain of commit graph layers to ensure that all layers are > > + * compatible with one another. This may disable generation data and Bloom > > + * filters in case they aren't. > > + */ > > I just wonder if we could make potentially rephrase this comment as follows > to make it more useful? > > /* > * Reconcile the settings of a linked commit-graph chain, where `g` is > * its tip layer. Must be called after all layers have been linked. > * > * If any layer lacks generation data, generation data is disabled for > * all layers. Bloom filters are compared against the settings of the > * top-most layer that has them; lower layers with incompatible > * settings have their filters dropped, with a warning. > */ I wouldn't go into the details as deep, as that feels bound to go stale very fast. How about this instead: /* * Finalize a linked commit graph chain, where `g` is the tip of the chain. * Must be called after all layers have been linked. This checks whether all * layers of the chain are compatible with one another. If not, incompatible * features will be disabled. */ > > +void commit_graph_validate_chain(struct commit_graph *g); > > In the same spirit, I wonder if commit_graph_reconcile_chain might be a > better name for this one? I'm not a huge fan of the term "reconcile", but I agree that "validate" is not great, either. I'll rename this to "finalize" instead. Patrick