Article View: linux.kernel.git
Article #2695Re: [Outreachy PATCH 1/6] notes: store the repository in struct notes_tree
From: Okhuomon Ajayi
Date: Mon, 09 Nov 2026 10:27
Date: Mon, 09 Nov 2026 10:27
25 lines
12704 bytes
12704 bytes
Patrick Steinhardt <ps@pks.im> writes: > I think this function should continue to receive `struct notes_tree` as > first parameter, as this is the subsystem it belongs to. While at it, > and as we already have to adjust all callers anyway, we might rename the > function to `notes_tree_init()`. I put the repository first because most functions take it as their first argument, but you're right that this one belongs to the notes tree. I'll put the tree first and rename it to notes_tree_init(). > Okay, here the arguments make sense. We could likewise rename to > `notes_tree_load()` though. I'll rename it to notes_tree_load() too. > Oof, this interface is cursed, it really should be refactored to not > have implicit global state. Arguably, this default notes tree should be > either dropped, or it should be stored as part of a repository. Agreed. It is the same global I mentioned in my reply to 5/6. Thanks, Okhuomon
Technical Details
Message-ID:
<CAFpMFfBghbSSF8Zasok9CzA=1_soxJpjeRxJagSnaLygPDfcXw@mail.gmail.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-74906-linux-kernel-git=dewy.ruReferences:
<xmqq1p8zw49g.fsf@gitster.g> <20261105203344.48513-1-okhuomonajayi54@gmail.com> <20261105203344.48513-2-okhuomonajayi54@gmail.com> <avGP1YMrzFKIIsU1@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-74906-linux-kernel-git=dewy.ru
From: okhuomonajayi54@gmail.com (Okhuomon Ajayi)
Newsgroups: linux.kernel.git
Subject: Re: [Outreachy PATCH 1/6] notes: store the repository in struct notes_tree
Date: Mon, 9 Nov 2026 11:27:05 +0100
Organization: Usenet Network
Message-ID: <CAFpMFfBghbSSF8Zasok9CzA=1_soxJpjeRxJagSnaLygPDfcXw@mail.gmail.com>
References: <xmqq1p8zw49g.fsf@gitster.g> <20261105203344.48513-1-okhuomonajayi54@gmail.com>
<20261105203344.48513-2-okhuomonajayi54@gmail.com> <avGP1YMrzFKIIsU1@pks.im>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
logging-data="328715"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6J/SpD2M6I/syM0jl0z8wKmHJcI= sha256:hI4zCD123hnPpfnx5tI8RXpPTbbieSWWIvrgoXs6oJM=
sha1:h8HTA9GlqWuGutqx7VNosqjD5+0= sha256:i9tVUswpNITC8QTGcMW7+6q8pAtgXc429LjPfr7cjKM=
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 C8F2B11378D; Mon, 9 Nov 2026 13:30:40 +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 hPYKDS7bFCLW;
Mon, 9 Nov 2026 13:30:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-74906-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 923B3113781; Mon, 9 Nov 2026 13:30:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 2DFBD63604; Mon, 9 Nov 2026 10:27:36 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794220039;
b=y58/Mi/hUdojp0VEihjQhlNsVF34POjvu029PHrLxlkKtWvTyTU4IQZXxmLtOA/TVXdy
X98v+hL3fwb+OALU52zBAlFzSqM5MgG8oYVJXAy92GQJlRzzlmfFPHYAW39F7JmtqBXgG
LQgTvwv6vMhzss3TFACl70Jiw6DZ2fDQ0rG43AZMchPhP+xwc07ZCbYsTT9gNmj88ECAL
00d1pdzUdlwKHGNuej3/KmOabQJLm5N0q7fyefmNiqGDSblyxcSFftOCVWNdUrihBotfc
vllJlhYS8UZF8sLCjYbXkALQ1r2LTUGad3lPF/erY6Llgj2tcpfGgjPT7IYb5InxCsA==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794220039;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:References:
In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type;
bh=JBONLngMhhQJQOfezGDZECXON9Dkxwfwb3j/uRdArdc=;
b=vcb/tYCTojs1pynMYK69zrnzExETnQBayEfWfg1qg/liFK4z+cgcHH8aAv/bXk7n8uAm
e5a9BahMg/zvClYzEktzddpw357qSblXQQASisIwUh2omkUVBg2dC+gTu18VKETRj3vrC
sL7fEDcqXCvZgWbKwrvrC3JlVN4YLY75Oyo7DJYbOkyHrBtEFsmGQsAUdwog12mH+MRmi
785JQIPpAL9BySwvlq1/nCwkLCFN+rIghcSxOK8Jk6YXbpK/Z7IFcEmGbAQfEXJ1SnwdH
1xp1/fnF4niay2qz79Yy6dvSRoQF47WW8zfCLrIs4/wmcOALRpiN+YPEzTAZSqyzPxA==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=AfvYsTr9;
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 22157606D83D;
Mon, 9 Nov 2026 10:27:19 +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=AfvYsTr9
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.224.47
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794220038;
b=gZqHqLG5kAHNmtqDpINCRz8wc760hetB+hnRRxPNl7FlE8eIA56cTfp1dn90CXrKeSkO
5EvEZE+5kGQwzCJTShgLMsxmpT4z6cIk55zG/4qpTR0O++98s87gX2EeZNMtClqIHMSyf
CFhIvyyqy5uqkeWPw7FnmmH2XWaO6hwwRqY4VbA0c/nK1e3wgYHY1oJhoNAFS+K0ftKTy
i66E52JftZHEa9akOrAPesT50TQA5UtFe5/vynCCciFMI4n8IRdRmJH+RZ6GjF2H8W/LC
kF+ba2QVB0MJvr7hcHXww3ymKQpQvqf2E3mUKqquavoAwPypzqhmDAEWe6Pz4l6m2wQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794220038;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:MIME-Version:References:
In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type;
bh=JBONLngMhhQJQOfezGDZECXON9Dkxwfwb3j/uRdArdc=;
b=czhUJvlr5WqSZfVIFS7KCoE8GMLgfM/HLDd9oexhQWiH07S2fA6ad3XBNlJqMRqhjZSm
ZZ3nh32ugc9PWb8y4wJ0gB7jMAgCWWoAqcqhNLFIqKtHbRuNNmPVCAT0T9JleXsXVoSnR
zD/+nrbTbeisuBUxlsY7gU2I102kaK6FKBiLA1j9GNLUJruLLcLikChmHaHWiRRoTBO+7
xvcSUR5FpSgBBqviOo791uoS+HcHJ6Ou8M286qByadMVeqyCGJ4BFHNz28kDFPA8yyNdM
eCi7JcDXuEesSerr3oevB9FMywQn2kqUT4h24K9Eun12VHbKPi4psz5pguDpZNtUcKA==
X-ARC-Authentication-Results: i=2; 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=AfvYsTr9;
arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.224.47
X-Received: from mail-yx1-f47.google.com (mail-yx1-f47.google.com [74.125.224.47])
(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 E4FFF606A339
for <git@vger.kernel.org>; Mon, 9 Nov 2026 10:27:17 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E4FFF606A339
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-yx1-f47.google.com with SMTP id 956f58d0204a3-67921b515a7so651887d50.2
for <git@vger.kernel.org>; Mon, 09 Nov 2026 02:27:17 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1794220037; cv=none;
d=google.com; s=arc-20260327;
b=jNFoIi5gzGzz1sJZ4tFmuqgMGY4z26ZdpI5tZ8vIYcao1b7L7RUviflrQNZ1PQBKFz
W9Rv+DNpfZ7hurAB9uQZhlqd1xfB2s5QIoGdN4bzTL6oKi2WZ6A0KArB6HRqclIjLcrw
EfRVvT69mAKa1lZu4SD6pbkuaShUmYGgMOV10y+K4DLn+dWfHujvm5bUsy5LJZclYsVb
oe5qGyvDFHgMs+DlDfCOO4OFjqtl+eyBg95YMzy4HKlQU4F4i73l7z9DBMLBH0em6l6Z
/NgSgDQwn3vNlHTT+dI9zzw9ToW55mFSFWxwjx1Y9tkcgVZJK3Um3plLje6aN2L/i4Mg
7BfA==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=JBONLngMhhQJQOfezGDZECXON9Dkxwfwb3j/uRdArdc=;
fh=u2HXvIO3dn789rE2mqcm4j8Y11yJaHQ3Ds9eIxaXqaU=;
b=blo7C2jT5XNlP5dsC7XuqmP9Z1RO1DD8too2iPrWa7yG0cFry1V+wzHyU0p73maw4o
7WMtOE5LCsJRxn7kFENVekxUuzAmM0qrD1sygoRoquVx3xJr6W81ZQyFKWnH9/WD7/qr
nW4KgLSmXxIjVNfM3GyILKG6XADUXMdwd5SNacKhDZ02Itp9CMxYndy22XggGBr0udYz
/2L/tjD3va/Vu/a+gWGSHFGlShSLt0i60oyQYfZdLGw9Mm6PIZv7NagZZeiuG7nWXpMt
5yOiSPyxU/ebUNjn34piEWxxUEM+vQt58LoGN1mZepcwFdMj1ls0ZAKB6HU6ahhPWasB
7Nng==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794220037; x=1794824837; darn=vger.kernel.org;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=JBONLngMhhQJQOfezGDZECXON9Dkxwfwb3j/uRdArdc=;
b=AfvYsTr9iY0efqYcX8Ox8PHNE+3pbJ5vY/3HXJEG4oofjIZ8C1Qsflv8aiPSapJ/s+
XT/bIRfX/v6E2t1mqvqg80bIQi9MSOFdTAetPd+5e9bXlGjN2AYUTId4f3TBzWWZEENO
XATUWV/I/TFLaxfNyNuNdKuBXlwZ05EO8Wqhx3Tnm8htRQFRBHsWAZ+XU7ADlqwN1/qn
vWA8JBUT7fswIrFIGhvo3Zk+pxrlfrTRdUjvNpQDj8X3spZoQamOaULvcviE+0kW6vfs
xak43ji1hgUrRpcmp/6iqCtI+cUw2ytPdZQaX48MlbycRONFJzZS6jVd8eW7s9dQxIkB
VZ3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794220037; x=1794824837;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=JBONLngMhhQJQOfezGDZECXON9Dkxwfwb3j/uRdArdc=;
b=aNAuq3rTCtfiEDabUFfWpqbBShPKJuI7fatoi2ECCUhjHfxmg8Mb/8AvCtLYHUkiv/
yX9WbrOKWk+AN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67c3da679e1mr1595210d50.86.1794220036947; Mon, 09 Nov 2026
02:27:16 -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-In-Reply-To: <avGP1YMrzFKIIsU1@pks.im>
X-Gm-Features: AclHuK_NE4ikvRx-tOzo5Kfj-myEZJXFhV1CUevzQJ5tEqT79oFMfcx1YGu1fPc
X-Cc: git@vger.kernel.org, christian.couder@gmail.com,
usmanakinyemi202@gmail.com, siddharthasthana31@gmail.com,
kaartic.sivaraam@gmail.com, gitster@pobox.com, karthik.188@gmail.com