🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1377

Re: discussion: sha1/sha256 repositories and convert_commit_object

#1377
From: Adam Majer
Date: Sat, 24 Oct 2026 11:31
67 lines
9985 bytes
On October 22, 2026 1:21:20 a.m. GMT+03:00, "brian m. carlson" <sandals@crustytoothpaste.net> wrote:
>On 2026-10-21 at 17:37:13, Adam Majer wrote

>I had noticed that the mergetags were not in Linus's repository, but I
>hadn't tried other repositories on kernel.org.

There is about a dozen or so mertags that I cannot find their objects. They have references to other repos, but trying those, they remained unresolved. One mergetag had some 3rd party url, which wasn't working, but http:// access allowed me to resolve it. One from a dozen missing resolved. 



>> Would it be possible to have a little different approach? For example,
>> mergetag headers and other unknown headers, maybe we can consider these as
>> just text and copy verbatim in convert_commit_object? I understand this
>> would result in different commit ids, depending if coming originally from
>> sha256 or sha1 repo, but since git is not really preserving references to
>> these objects anyway, this may call for a little flexibility.
>
>I don't think I converted mergetag entries in my original series.  The
>problem is that if we don't convert them, then we also can't validate
>them because we don't know what data they point to.  We don't make
>assumptions based on the size of the hash because in the future we might
>also have SHA3-256 or BLAKE2b-256.

I'm not sure that is quite correct. Any supported hash function should be unique enough such that we can just try all of them. So, a mergetag or proprietary headers, if we just treat them as text in conversion function, they can be retrieved later using the original function. Hash function doesn't matter for their existence or validity. I'm assuming here that the original repo containing them is not replaced in the meantime.

Basically, I'm assuming that a repo url keeps their original hash function.

The most important part here is to be consistent. These shouldn't be converted when available and skipped otherwise, or history becomes nondeterministic and depends on ingenuity of converting person to find these objects. 


>That means that the original point of the mergetags, to preserve the
>signature and contents of the original tag, would be useless.  That
>doesn't mean we couldn't skip converting them, but it does mean that if
>we do so, we should probably just stop writing those headers because
>they're no longer fit for purpose and we should consider them a failed
>implementation.

My problem is these mergetags have url where they were published. But they are quite missing on the git. kernel.org in these repos.

We can still convert the objects, but references would go via loose object table.


As for unavailable submodules, like in NodeJS repo from over a decade ago, I think they'll be unconvertible. It's not really possible to skip these without making a mess of history. Or perhaps you have an idea here? 

- Adam
Technical Details
Message-ID: <70D18A25-A2AB-4237-8C63-063CEE8BBBC9@zombino.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73138-linux-kernel-git=dewy.ru
References: <ce3756bc-704c-41ff-bf8a-c060a2848aeb@zombino.com> <atk63xoG773PzGq7@fruit.crustytoothpaste.net>

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-73138-linux-kernel-git=dewy.ru
From: adamm@zombino.com (Adam Majer)
Newsgroups: linux.kernel.git
Subject: Re: discussion: sha1/sha256 repositories and convert_commit_object
Date: Sat, 24 Oct 2026 14:31:22 +0300
Organization: Usenet Network
Message-ID: <70D18A25-A2AB-4237-8C63-063CEE8BBBC9@zombino.com>
References: <ce3756bc-704c-41ff-bf8a-c060a2848aeb@zombino.com> <atk63xoG773PzGq7@fruit.crustytoothpaste.net>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="747470"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0rifmfi5XJoU2Ls6gBqYTkri/EA= sha256:wsGjzKpW8ZlPv90RO9iixxnfkArpXSgMhJHCfmoP4Nc=
	sha1:MatpaeNROl6Av/t3LFaJi3Cof30= sha256:rCMgykmgkLZMeJttPvWVaA9rEBJWGTvaLNpqTVCRcwo=
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 B3B6B111625; Sat, 24 Oct 2026 14:31:52 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.95
X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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-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 WHkb_tF07-nV;
	Sat, 24 Oct 2026 14:31:49 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-73138-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=zombino.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id AA4821115FB; Sat, 24 Oct 2026 14:31:44 +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 17FA63446E; Sat, 24 Oct 2026 11:31:40 +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=1792841499;
	b=yargJFdCJAHnrJlduYhBXGljNLCChRfyY9VldSihWj7/aS0cu7Sy+ra3l2PdhC8wSxS6
	 EGYd/TWZmMBm1i6EI+Ho3JeCmHoAhMOk9s2QMCsPE4Ymobe99y3vWnb32ZxRuN4it8EMD
	 GK6BtQ9zoPMlL9M0smW/u2Xh/aGLW0eAXqjrOVJZ9z+L1zaeNrj6Y75OG/mTcKELhyoy4
	 PjaZzP3P1q8QzCKhKpdRQFafKnCAgNEHKQ6Z4U1hpv1NdAJhy5HSe6MCDXyltrlXZbMhr
	 ShkL9uw+SY34xtuvuohL+ODgb1FacjC/erRksJ2793dOyr+F5FjuT9/Lonvxk156RVA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792841499;
	h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:CC:Subject:
	 User-Agent:In-Reply-To:References:Message-ID:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=Hcd8HsSftTRZj4H5rHeDI1GmLPjkdsQL43V4oIcbxL8=;
	b=logAQafA7PnvJQwXeGdbcC5sVLqZLQ65YwITT/nB1g9S0oVmgqrocqYVGmBPeSElaEVb
	 bcSTDCShYdFhBelyEaR4aVcllOxE/ZuBGc5XxyRbPVuIff6ibaX2/bABJBqHx4YcET1OD
	 PevMc7Sz4A878ff/HxjMnbwtruxXHxK50FZHrRdzAC+Vx0Qdu7mH9Kvw9ReDDHk1L+StS
	 Jal6Bnd0aeFLfiNoPbITB/+fPujLgksk1uIlBPuLSQ0h56sR8ExeP9iSATEaGY85/7jgn
	 IY7uBgNemQNNZJD+LFrt6ccyP2zmbpKMpCMk9UEomMGumqFCLLwktxQJTt/R2tT+mVA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=zombino.com;
	spf=pass smtp.mailfrom=zombino.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 1421D606A321;
	Sat, 24 Oct 2026 11:31:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.107.222.152
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792841498;
	b=yUE6D5indnvF08/hhZ5mAhcLKxHed6F6qFlnyXKzTIcPCjcHs8lYRAQlofhBrVqc3wPA
	 sumfZKZ/5YZ/DuChpZ6NC1G8D/QcaO5YRsbE3A2P6ZEcWVVsah8ejmbJc8YXezrQ3ZUMj
	 ClSuvJ3Uel117ZaKReUpkR/l/Xe4SYsLorDWxkuYOsQFCfMqbkY/J0EBO17woqZTfRD+f
	 aI5s73DqQ/0Gdx2Uq3M/inyPNg3uPB1xQ5QdNQmvjHxZBzPxOyl3CkrNfH2HEsBFzjn8T
	 tXsl5Ap33+cN/tVyaBpcWiVZFQ1iG46UyAglQ+n0Mdf4SXsWwL63o9RVeyeGeDVODLQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792841498;
	h=DMARC-Filter:Received:Date:From:To:CC:Subject:User-Agent:In-Reply-To:
	 References:Message-ID:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=Hcd8HsSftTRZj4H5rHeDI1GmLPjkdsQL43V4oIcbxL8=;
	b=pIzOtjf3fl5uLPcUVHi9SzmOzumjLWmu/hRvRTsieVra9tyeU+qVSN1CwxdsHhAqRlMP
	 R87k1juZ5Y6/WJVIVkPv1EgemhtT7gfwEwIprwd/kkCmZ35kwJZA3E4zr47ANvLcI5cfQ
	 FhgxFbgaI3EHVO0o5XmNwT6fOJJAMUBm2Hmm0xJ3g7i1hfKFnqoeg3nMQcQrSEsaR41j9
	 MWn7yYfEKuWzIP3W2k5ZAwmn/uHbnS9o/pUwrtJs5yJgR8z8EDZlK2XJJBwwxCKMZr4ud
	 XQ7IjUdaATq3GTWF2UErBuS3F04jt07rYZTwy1eBdvIijZ1n+I4WgQ1d8b9bT0AlSQA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=zombino.com;
	spf=pass smtp.mailfrom=zombino.com;
	arc=none smtp.remote-ip=91.107.222.152
X-Received: from mail.zombino.com (c3.zombino.com [91.107.222.152])
	(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 4D850606A31B
	for <git@vger.kernel.org>; Sat, 24 Oct 2026 11:31:36 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D850606A31B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zombino.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zombino.com
X-Received: from ehlo.thunderbird.net (unknown [176.235.169.138])
	by mail.zombino.com (Postfix) with ESMTPS id 08A541C3C596;
	Sat, 24 Oct 2026 11:31:25 +0000 (UTC)
X-CC: git@vger.kernel.org, "Eric W. Biederman" <ebiederm@xmission.com>
X-User-Agent: K-9 Mail for Android
X-In-Reply-To: <atk63xoG773PzGq7@fruit.crustytoothpaste.net>
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