🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1865

Re: [PATCH v2 2/4] loose: lift loose object index parsing logic into helper

#1865
From: Justin Tobler
Date: Thu, 29 Oct 2026 21:10
16 lines
11119 bytes
On 26/10/29 09:05AM, Patrick Steinhardt wrote:
> On Wed, Oct 28, 2026 at 07:24:11PM -0500, Justin Tobler wrote:
> > -	if (inserted)
> > -		oidtree_insert(loose->cache, compat_oid, NULL);
> > +	if (inserted && cache)
> > +		oidtree_insert(cache, compat_oid, NULL);
> 
> Okay, so the `cache` is optional now. You mention that fact in the
> commit message, but you don't explain why that is. I assume a subsequent
> commit will make use of this.

Yes, this is used in the final patch. I'll update the commit message to
make this a bit more clear.

-Justin
Technical Details
Message-ID: <auO2H-RBiRB_vwVl@denethor>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73819-linux-kernel-git=dewy.ru
References: <20261022234007.3081825-1-jltobler@gmail.com> <20261029002413.3291184-1-jltobler@gmail.com> <20261029002413.3291184-3-jltobler@gmail.com> <auL-W9Z2H9Ivn1RC@pks.im>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73819-linux-kernel-git=dewy.ru
From: jltobler@gmail.com (Justin Tobler)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2 2/4] loose: lift loose object index parsing logic into
 helper
Date: Thu, 29 Oct 2026 16:10:48 -0500
Organization: Usenet Network
Message-ID: <auO2H-RBiRB_vwVl@denethor>
References: <20261022234007.3081825-1-jltobler@gmail.com>
 <20261029002413.3291184-1-jltobler@gmail.com>
 <20261029002413.3291184-3-jltobler@gmail.com>
 <auL-W9Z2H9Ivn1RC@pks.im>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2101846"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Yz/jFRo1j0N+63BKb8L3WxlmZcI= sha256:kOURIOAW3/Mk2E+qFledpPSrU5Wgzcw4tFrOn508P80=
	sha1:nSL5+xDWTe1jJT3f4eNEwgS9y/0= sha256:SlOuF6rYgHuiZ24oAPVnqbW9RZzJZn1W7UX2whXd66c=
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 14914125C78; Fri, 30 Oct 2026 00:16:02 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.948
X-Spam-Status: No, score=-1.948 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.25,
	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 OTgMGYVaSyxo;
	Fri, 30 Oct 2026 00:15:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-73819-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 3464D125C6E; Fri, 30 Oct 2026 00:15:50 +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 0481A24220; Thu, 29 Oct 2026 21:10:54 +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=1793308253;
	b=Bb0hNEm1jmN0p0d8UoLgj5uUXDOGFOUkTtq73kRUHsBCEK9Tegjc9M67fb0D6QblYDW+
	 gP2SmkSyjO8x8G/7QMLRZgQKFEMB62M4AO6GACoUiZzRwfsTN5VQElkOXuA4DkDOhQNPb
	 Vb3vrw8NIeRMO7+Is5UTFAgTxymHOVN5EqyVC0i/Miz55ovoLBibM8gw8nl6nBUEFQ+C6
	 njSrKbhYIKE9I9hOft+DxzqsNRc0hxtAtCuRS3LhztLv8I2aBJ9zHPq1Wky390sPh7k1N
	 nzA7AjBIy5F671ytt9RbgWUYPY8MM6pE+NFUaUEAgA0HXQvS+oTrPl9TMgeEY7eIReQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793308253;
	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=rqrLzfge747TN12URW4HEwXFKO6EuUR+UYSllmhO1m4=;
	b=bzlZMh7XvtzordF9nE22IOZGWi5UJrfX4TP6irNl890oMFBBeWWu2p/c5438mmR9tRVY
	 oWDzgd6cdA2RTUATDPrRFZohtRSNHttJJMoCs8MRfsXjoUh6rsYHHl21xlAWhESqBIvoN
	 M7j5IMWbrLAXbCp6vP8TFA3ynprjwzjnyvS27+q9NAchD0LJlGN1A8TAvFXK/rYqgizS5
	 m5gAdDXJNCKgD6daz0LFJKbUp/vx3ilCbiZMzlYev1EBASIMz39HVnrjzogmt4m8VB3+f
	 z2wbP1VCWXt4PFks97hlAFjzP0hedvB9Tc5HAORzudR1NrilNnss2pSHKEX/fFEPLFA==
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=R4zhDugY;
	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 CDC45606A31F;
	Thu, 29 Oct 2026 21:10:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=R4zhDugY
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.172
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793308253;
	b=ruOpIPJA0zQ6Dn+wdKMamSQVDXeCQ2HzFBvg38JjuCcPnxYX5m3q6vbTjJllGMziaMla
	 x+EKtIdRd9lK2qT4BZfvMgIDLEau+kjv5PgxgcC+4S+HS5SZkuvPT8xl05tJBNRFAGims
	 puLnz9SPoJUOvIE1f184rjODhCYYIZnR50eg+KeE76V8blgrV76V5+2bs9r+Jnt9uMGJu
	 8uwVk3bE9XuYDGj7fSsZwV45X8mk4UUIpYPIgw1OvFZgUG81VUJAonbpKwn9wHNFZBqQL
	 hnI3/F01g2l6jD4Cv4NQ87wsjSfWbg4qYUyMhp0gagV6FKLYHZZZDnapRDhHO7Z+nSQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793308253;
	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=rqrLzfge747TN12URW4HEwXFKO6EuUR+UYSllmhO1m4=;
	b=XKBLYTi8P8dFfhKnwj+3QBHL1r5m1A1VRtlWqrnaZxPYC1CZ5r0NDvdldKiKLo45gZSE
	 WvFWGIsibT7C1qbwb6ZrSSU0IWG2vwD4gCHFKpTJ8oWRt+YyFX0djXfNMoYKI+J/YOAPD
	 x3HHps53W8YOYizH6GkkVqqHKI35Sf9PcTPQBFra9Q50fjfqiFdQJcRyPxWDrkRsILPjB
	 +g+5EeuqS5PTQdaq33MEZgMtXp9OTqUDERjK8Ustx7yyquicPNaWvS2whthRn6hxI067o
	 MMLgRyRtz5LM3uSINIYaMTFQp3yBjkG9Lkr2Ep/Tf8mgNuIjvk5jQpB9JF071B2WuYw==
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=R4zhDugY;
	arc=none smtp.remote-ip=209.85.167.172
X-Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172])
	(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 97A4B606A31D
	for <git@vger.kernel.org>; Thu, 29 Oct 2026 21:10:52 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 97A4B606A31D
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-oi1-f172.google.com with SMTP id 5614622812f47-54cd7de2d42so31526b6e.0
        for <git@vger.kernel.org>; Thu, 29 Oct 2026 14:10:52 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1793308251; x=1793913051; 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=rqrLzfge747TN12URW4HEwXFKO6EuUR+UYSllmhO1m4=;
        b=R4zhDugYfR2mN92NKZhL93cTDGr+LOq+7KAHbZhLDDhn/ZI9pxm4ARmkyA4yw6bMgN
         hWihl4HvG2uEXbPbQQYb9MGupvYukpeqpheli4iLNwGKrm59BBGiDztVR1H4jkjqZAig
         jqACeQWy8NFfc/HJvDt4Q+3aObeg5l5wC1/oOuObSBLucUfmFkMv5JeygQYWtfkmT8gs
         Dnhbp1Noj17Aue1GLBK2fiTiEJEhxWrFNXkUwE1qgauZAB6RwTkH2mHbH4toR67IcCBM
         kKmQ2b1/08Aymvp85PhgYxxFkwQJwFDb6J90UL8WgasBRB2NyEzueXnZN00mVko9YOBA
         nVSA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793308251; x=1793913051;
        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=rqrLzfge747TN12URW4HEwXFKO6EuUR+UYSllmhO1m4=;
        b=oCC/esbIZYmxfwrv1WU/389dJ734lbTkAV9fEV7wMCmjCaR/95nTi/0799VGFMOFTf
         qnX9vFz2ED09ic4vm+8PVLOuDWCQ2rmivU9knFCw2My3TBF04LFyzhFSoMlkP+s7/U3H
         iK7zILA6pv0xkyPdt3UhZB+2Uhtu0iHGTOmq5792Yp4QeHBfNfUVEw7QmIqlw1pS5ESA
         zKUtasfdfKDhYeUc72GJjn/U+btjrpAHT4IquymY+qFErC9Ili1lAIBoJ0sqI0TGSHet
         PZ+eTAIi/mmNd+F11DRvXTLGPUJdzOP+xOBGxyboozNlRaRE82sNoz3WYn0AdocpUexr
         mGpQ==
X-Gm-Message-State: AFq9FYJxyx3eMWh48+MouPRnhkNomWj7ecTk59+V1Ihg54dyuGamo6ir
	DgiVvtLz9I498xMlRRWesGJE7pRgdKvK7xk7s3tx7iBZuIkTLDW4GvWn3+1wnw==
X-Gm-Gg: AYBFou0giuR8VveSJf6BJcNNiPiHXNPWLs6s7X6+czyWzPAqexvJLL61+/7Up0CbW9h
	ZJTs0caf5ZgVvTbtK95mqcCd/v8iF0JbPrt3E/Q4N3zwGPfpOd5Sst1+FDR6mp+zJ7uK7ypdvP2
	7bLiBlGR0tpYlzB7FliH2ZKgAFfEwnCesy9WvIDIl44fQjoDSTljTM/e5tEsZTcjngK3LjLcBm9
	tkAPC6DmYQ4Yie9K3e8mUpu7r9sGWFATC9Ht6LmDxgAEJvue6KUAzIe5m43b74ua9HK3QiIModM
	FVL+1+Rd1HNXN9oGoA8Mmpvovmfwhc46n+SoCnFS/1bPrwhVkEds5rSlTYCsRZewnYMeK1+O8zZ
	eUtuPoEdWGs5UlhneEVjGLob0Ahqig+NhBUXrNJmpyW1Xd83GReeUExRSIa6UqDdO2wseg+QYOK
	9zpqD2SByNSbngZWA5WiNxNzz9hiIpdizqUz/uZzEqq2uNAanJLSDUcjpP+zHToRvT8U6zHmxCB
	msI3TCNPTC0wcPp9wlcNMSyn5Zync2FUnmeSpw8PeWasogWxhwNqYDprzCzDrAAw/jiEdFW+pgB
	fwH7uxa15s2b6tGNsIqteV3gjrPNMYWUuhqFfks9XJMCrnCH4G6+qA==
X-Received: by 2002:a05:6808:1b0a:b0:500:5e36:3a9d with SMTP id 5614622812f47-5640de79ad3mr310543b6e.30.1793308251550;
        Thu, 29 Oct 2026 14:10:51 -0700 (PDT)
X-Received: from localhost ([136.51.44.64])
        by smtp.gmail.com with ESMTPSA id 5614622812f47-5640fe45587sm61315b6e.15.2026.10.29.14.10.50
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 29 Oct 2026 14:10:50 -0700 (PDT)
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: <auL-W9Z2H9Ivn1RC@pks.im>