🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #3904

Re: [PATCH v2 03/13] loose: add a flag to control whether we write mapped OIDs

#3904
From: Kaartic Sivaraam
Date: Thu, 26 Nov 2026 13:57
22 lines
11456 bytes
On 10/23/26 12:55, Christian Couder wrote:
> 
> Right now, we always write the object to the loose object map.  However,
> in the future, we'll need to temporarily store some object ID mappings
> in memory so that we can rewrite other objects, such as when we're
> indexing packs.  Let's make this easier by setting a flag indicating
> whether we want to write this to disk.
>

In retrospect, I suppose the "Let's make this ... " phrasing is kind of 
an unwritten unexception to the "imperative mood" guideline. I could 
find a lot of commits using it.

> The bottom six bits will be used for an object type in a future commit,
> so pick 1 << 6 as the write bit to avoid conflicts.
>

Nicely explained. The patch itself looks good to me.

-- 
Sivaraam
Technical Details
Message-ID: <3b70d34b-5dba-48fb-ad5f-137e73c36c78@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76442-linux-kernel-git=dewy.ru
References: <20261023072559.3204273-1-christian.couder@gmail.com> <20261023072559.3204273-4-christian.couder@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76442-linux-kernel-git=dewy.ru
From: kaartic.sivaraam@gmail.com (Kaartic Sivaraam)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2 03/13] loose: add a flag to control whether we write mapped OIDs
Date: Thu, 26 Nov 2026 19:27:01 +0530
Organization: Usenet Network
Message-ID: <3b70d34b-5dba-48fb-ad5f-137e73c36c78@gmail.com>
References: <20261023072559.3204273-1-christian.couder@gmail.com> <20261023072559.3204273-4-christian.couder@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network; logging-data="478769"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:FmOXCaqJpEMgxFqGPYdtArwu1kc= sha256:kQfiX9ityUzLRH/Oddo4agzTgdsxwlL6GBkSBDvnIXo= sha1:lmCkKlnhRYRwplY8XAWHbth4w6E= sha256:2BrfOVRbxHZV/fORJfUIMv40bbnrvkaiQ6Fsh8VXzao=
Content-Language: en-US
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 F1068125EDB; Thu, 26 Nov 2026 16:57:27 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 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.249, 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 ZdcaLFOobGhv; Thu, 26 Nov 2026 16:57:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76442-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 36763125EDA; Thu, 26 Nov 2026 16:57:14 +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 C37633A8E6; Thu, 26 Nov 2026 13:57:08 +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=1795701428; b=aFUiLbn/nOFQ48NCDU7PUwxesly8Pg8X6og+oaRbZO7roxjKVIbykAPKVn77iIQjflKc 6yJvDLNwlN4FkF5YX7hPyEhUtYnwtC7sJDS9bkqnrp5Sd/elC6FCW0/HWgFyp3P8r7ixi oC/ZgImSvG0/fQf4oPmnJRfNdhya2QhfHffamHa4tsVL0Ils5Eg9RHii1c0XK5ylcmIdG ZMDlzae9ITlW2RGU3USshZLag4eZ6naqLV/XUsQ0uVRDDAcKh8F3Z2mv1TecsKkQuUjoM CBK6jg7yUDaUzVWRmalLTXpJb2l0iV+2K80+zhwHAwYAxRZ5VzvnBhyCGuAdV9rO1cw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795701428; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received: Received:Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=I0V7iP+AMaFo0TrDeNy6CbkbEIqybiLaShUpkDx0t+A=; b=QmxnPOxd4xtmy9mMStS3nmW6qy5p8Vq0IGD4d/b79XDCJCdLdkZeisgu4Vk0vB/fhJUA KJUI7Czva9PUPG/aVtmXfTEKmrFpwoyTfFsSmpDa4iE/3JGjR/gzcfCnFCXykjufaAlg9 uzNK1ZxroLqfdcxjimIpiVdfMznbU+X9zP+Lc+qaycnhiiAF+O0CRD27W6nHUItuLLuA0 9w3TPm1KFMWRDvcKNgsKpGYjCvfy9+DOgKcQWXXSsuOzgN0VY2x0KzIw8wcRROOrt/v41 8sorEsLcL+NZ8/Yj0ML2gXcslVg54W0CCJvb+jiuY7McXAfdNmReg1dX+kyjCfWFKRw==
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="A0U7nS/5"; 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 374B1606A329; Thu, 26 Nov 2026 13:57:08 +0000 (UTC)
X-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=A0U7nS/5
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.43
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795701427; b=tnzHePqmq4/Q+xhmMm/BYmmzDZGmK7PcJhd/XDl2FqKg2XRBWdiyClydQYkIMbdVRFH4 ZwwwhoGM3f9WUUiARATylH9ksm6YjiSGcyldsVW26HAYH8mJ0NUsvDujkuCts6nsodCQ5 4pCoAevWQ8Dvs2+SD9MtpkmN9KC5fmRjEH+M+YiGFCu0g9Z5//FAiyF0PESTdWg1x/qr7 f2YW7rD4KcuKVsPvZ1lKxHAuqYtPaik1YKtz8FMs5fqmgpALrNjx60GoRM9QlJynh+6oO 2E2AT5s1nyyKibhKmBAIbXQi3cOwgaCRqjDQNn46MZLBdpF9CWiE6kGEW+ggW8TLOsw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795701427; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=I0V7iP+AMaFo0TrDeNy6CbkbEIqybiLaShUpkDx0t+A=; b=vF9rOH89X+zqRo3rIt1WjFtc0nbMR9Z9mfqAvXdZFFk+HEECaaG3VsWpMxNSXK4zBeqB ogg4jCAgEyUSdy77VP+SRRVFqUBHRFCwnfMu2Z6pnadV6ruKZlJFlSoey4fTCuK7pTYHd 0i1sWD3cWTSW9bVRQfdPVC6k3qH4P8tfvcRnFr/Asq5wVjEAEvaPuzn/xId/BokD19Z0w 0Xpch+Zdl+FJYnTdTJZcl78NpMDXvnx9UZVR+yAnCGxPEJzARKJbXE0CXCI0tTOVq2jW/ JEFXMTFO9dWHn/CdCy5MHN4Vq7W1YxzCPvVZJp4tHrKCYI5xKuLIv+0ZZgRD6u+dHdw==
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="A0U7nS/5"; arc=none smtp.remote-ip=74.125.82.43
X-Received: from mail-dl1-f43.google.com (mail-dl1-f43.google.com [74.125.82.43]) (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 0B39C606A31C for <git@vger.kernel.org>; Thu, 26 Nov 2026 13:57:06 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0B39C606A31C
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-dl1-f43.google.com with SMTP id a92af1059eb24-14394530ec6so597082c88.1 for <git@vger.kernel.org>; Thu, 26 Nov 2026 05:57:06 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795701426; x=1796306226; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=I0V7iP+AMaFo0TrDeNy6CbkbEIqybiLaShUpkDx0t+A=; b=A0U7nS/5sYkFVkfJCp5oqISF9Cj38RV0JVF7bgWIyPAxVAYPstVLsIO0lwHrx9kvpZ jzsIw5c5yvEs0U8GEKCUULH7UL1llXyenpjU4F3jO3NH1jOD78SKaNO6pfr+oYUir5tk aG3tZuyXOILmL4yBm1pvqbAJTtUwPYstmqk8XGDeqUZWfCZrqW+NsuYb3BMCu1hfujcW EHQU4lKJ+5uBxMilVZS/qqUwjZj9QdRpaCcGiGDebaDV/pKPjt0BLgV5r+77DeVOjFVd 6ybNpZJR7QYb7h/xGfgCRzvKW/ZNGxzON26z/YK14oAxp8RKQyjWnKRWsh/T+Q8GI29V hvLA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795701426; x=1796306226; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=I0V7iP+AMaFo0TrDeNy6CbkbEIqybiLaShUpkDx0t+A=; b=Im0i0KnqwOc+rU28P6srWdchcDKeoA6HHFuE/Ibkyb2EF64bsSs0yElJk8uSNKMFY7 gu7vheSBYXe7bikZKs8JyJhbY7cNsGO1viFVXlzweYDJjBR14daU4lKn5XryLr7YscxF E3J3b/EynEdZuaWfB4WvCFElumuKLZJQaWANVxItMqhPlxh/QiSCftlPslg6EkLxRbjp IaaopRzSAaYzBWZWhzYxgj0PMUiDitk2C3yGuy2TClq2xcRXK54z6J045P9UyekyaF2k /9wPebJ8AOUMIZsRRoDcteW8jOJKbz2jj814oqWfZXjuZno/EkKEwdVhgRDjpCt9C4yT 2Ehg==
X-Gm-Message-State: APuU4Z9gzRGDldNi2ryj32t4v5MrWBv+1aoaCjhtkvIVCgZCZzerzUPQ Oz9+avGSW9Tj3IW9Wn5gAy0VGVW7osk+GpO4HeKH22v/P2fvIiRNc1ag
X-Gm-Gg: AZFdTZfFConceKWlLiiuL5SwNy4WCuKqCjUoZ+2qCzLNclb91Xc+HIsdPBxnlMfewDL TlysLpll/7SJnVd5bPRfyzAUJ2wh84O3i1jZS9kz9PAsT7oAVMvpfLZnz6lOJP9p3+k3RW5KI7c H0CfDQWsu7s5hM+Ne05m08DEQjccvieUv02cm1MBnZWTy5nwCssKz869/CV7DAF6kzn/UmSr7ad EwG/+Pi/1bVGqqXTCcrLG2GbR2hEXZw2cpslAiIrD72UXQI7I5qz+9fh3NQeNrlGLZ8QMSnAxNn qugh+qjNghV0p0IP7iChNXhiAhuE6crW15d5cfm+faO+NuyB5HJd8rcxk+9/Qwqa2Qk4XFc/tTT /HJMmeN7M3QkWQbyVQXjxjiI17+ifPebCblkpuCNUjfzwkGj/FbSayeUsHlXc9FHPMqg0oIqOC0 NULVV11OJt1S28KY2Aps+wf5+E/Ddxt0Yt+xOXi24SVbm+HA7gvr4V6MmyYO8ECvYu6hcDk0ZG6 yWduQ7kKbMPqUVoN+6pC7Wk9rgVNga35riMIWOs3JM3xTWhzd8sLWKfpyWGlSwtSmkFIyyrWcyI cf2FXgzABTuXNGOFgBhU4bE8dGXupqbVLcjCIVpT/yYtbbaMswi+va9oZTH/B8AZFyk=
X-Received: by 2002:a05:7022:f509:b0:1a4:4194:fc04 with SMTP id a92af1059eb24-1b5568e4322mr21472660c88.28.1795701425903; Thu, 26 Nov 2026 05:57:05 -0800 (PST)
X-Received: from [192.168.25.219] ([115.108.41.154]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-386992b404bsm50431164eec.1.2026.11.26.05.57.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Nov 2026 05:57:05 -0800 (PST)
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-User-Agent: Mozilla Thunderbird
X-Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>, "brian m . carlson" <sandals@crustytoothpaste.net>, Patrick Steinhardt <ps@pks.im>, Elijah Newren <newren@gmail.com>, Jeff King <peff@peff.net>, Johannes Schindelin <Johannes.Schindelin@gmx.de>
X-In-Reply-To: <20261023072559.3204273-4-christian.couder@gmail.com>