Article View: linux.kernel.git
Article #1091Re: [Outreachy PATCH] environment: move commit_encoding into repo_config_values
From: Okhuomon Ajayi
Date: Wed, 21 Oct 2026 21:20
Date: Wed, 21 Oct 2026 21:20
21 lines
12859 bytes
12859 bytes
On Wed, Oct 21, 2026 at 9:44 PM Junio C Hamano <gitster@pobox.com> wrote: > I do not think it is worth contaminating the repository configuration > with it. Instead, shouldn't we allow the functions that use this > global to take a "const char *git_commit_encoding" parameter (instead > of a 'repository_config' or a 'repository' structure) and pass it > through? The callers may need to query the config subsystem to learn > the appropriate encoding for the repository they are working with > before calling these functions, but there is no need to pass the > entire repository structure down the call graph. Thanks, that makes sense. So for v2, write_commit_tree() and commit_tree_extended() would both take the encoding as a "const char *" parameter. The callers of commit_tree_extended() would look up i18n.commitEncoding from the config and pass it in, and commit_tree() would do the same for its own callers. Nothing would be added to repo_config_values. Does that match what you had in mind?
Technical Details
Message-ID:
<CAFpMFfCZdz4WLcwJFefXTQ1v_g+mgFQOHxzkf0aZoPqTz3o-=A@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-72781-linux-kernel-git=dewy.ruReferences:
<20261021155608.58509-1-okhuomonajayi54@gmail.com> <xmqq33tyn5qi.fsf@gitster.g>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-72781-linux-kernel-git=dewy.ru
From: okhuomonajayi54@gmail.com (Okhuomon Ajayi)
Newsgroups: linux.kernel.git
Subject: Re: [Outreachy PATCH] environment: move commit_encoding into repo_config_values
Date: Wed, 21 Oct 2026 22:20:56 +0100
Organization: Usenet Network
Message-ID: <CAFpMFfCZdz4WLcwJFefXTQ1v_g+mgFQOHxzkf0aZoPqTz3o-=A@mail.gmail.com>
References: <20261021155608.58509-1-okhuomonajayi54@gmail.com> <xmqq33tyn5qi.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="65181"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:N87H6lKgfP4mbkRELSDlsfHhkK0= sha256:TJM/hSJJ8kFlcNFEGrEznzdunsQ1zokXBzRFyw9qmx8=
sha1:aouMG2dWhgkZx1YOPGzmw4MZEKY= sha256:Tp0F4YbioowjqZkyVAE2K8vXLTuEiSiF+rmP/kEMgNQ=
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 DD946111117; Thu, 22 Oct 2026 00:21:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
tests=[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 gkQLu7mdMbwa;
Thu, 22 Oct 2026 00:21:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-72781-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 2332B111115; Thu, 22 Oct 2026 00:21:21 +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 51EA72DE99; Wed, 21 Oct 2026 21:21:10 +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=1792617670;
b=tZLJMUn+aMe04rE4nXhovuYOOXWlEbV3/7zoZReLPRvEzbOeLKRVlxoZEZqZIVGgE0rI
PM0XAPZhqBeWZshaK1ImiZRp7c9zA1pCWJzGfNHkIWbgDPzR6IFP3dg/BLa3PUvltZeRD
pPEK61DKXIuq78GgUfiijSCsSowglh06JNc6nSEFwXj/7xRIS3TJUKTRlsPGQ6+RXR/9o
onZdvRRZJq+gJN9E4PQBHB8C9TR8E5g5/s12NHwCDiXje8PehB+XlW1+Wx5/OwV98Rv/0
zL0MR/KCskvnbZfegh1VJrc6GVJrXXxzrMAy+sd+FPawrXfBnIVq7Ob/+nGc3xUFR0A==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792617670;
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:Content-Transfer-Encoding;
bh=SHAAlqy1bmBfgg4hvHlOESgPdazNd74eSnwjHCq12l0=;
b=gLR+p1nLuS0Oy7r2qXtqz9TDQ7NBLyivXVa9zsaDvsBGLv36NL4dg6jNcyNIwm7NLSAM
6KOYisVHE3tctWIS7fg/9H4VY3mrb2/aHmWxKJAybwxCPQj33i+CzLZge5aiWWYEGHnSJ
zC84Z31qCmin/V2Red0n/LV+4fwjOCcGGuyI5IgWGjvKzfhdT0HLwLo15cK4k/NeZRnpL
Hnyz8y1YQRzqcsWcm0cZcGljya01ev9nk2hMq/kTEpTyl9IIvToFSPtfn5YCiN2omFBd8
lPompGUe3NtDnrQXH0jsHviH/ygHInhsN7ylKigGTv5Sl6tK5CLAGBvQmPfLLOVMp8Q==
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=20251104 header.b=fEkeVsHu;
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 E61D6606A32A;
Wed, 21 Oct 2026 21:21:09 +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=20251104 header.b=fEkeVsHu
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.128.180
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792617669;
b=LZjFdiM1jz5EsarsULjw1mSEwjKMcLzSZ2AxApsLxu90LtXSPwC/JEbVHjYT7J+odUb+
RB0guYRE/scHnxL0BOMKcFgDRWAU/o0QZJp05ZB7NsLn5dQZDZQg4+6JH7+yuvewmSFVL
wt7qWKG2gTCHkTV8ZC1hnAsrzSKtpkgO14lLULOBbWcglxBobcZ+QuvpSgPOUw2kEXLwv
A3fy5vsrjDt09rezqKCaNKKwABbZLn8VLliujKA2PeeBg5pnAIQqXdMZM4/SIX+ty+d6M
XNUlWe4EC2IPBspeze3FqMVaiUVnXwYz3gyKLv7bY9NWycVLJzhX852YEUbUTRQaZsw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792617669;
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:Content-Transfer-Encoding;
bh=SHAAlqy1bmBfgg4hvHlOESgPdazNd74eSnwjHCq12l0=;
b=ef+3BM//8mBV98CLnda4uA7+gVgZluc8foGuOpILNy5XbTKiYxyMxtegD9T9dRwsmzhd
oXov+z066Kl1tfTsmea2IAwMddrgtpU+ZaHULiT7KFtGtYmaFYWmfH4TntUgrw3Llb+VG
174rOsQHzEjwYxFsHOYCWU48h4NmfoLXIS0372VMxhBfK4zCe93oqJKw/Jw9yjjJHX8C8
Zel5Gqsec2KD5aQ97+SY11o71z4DOLQlGU2VB5/zVBjSHVXBtOtH5hGaEtVngM3KbWcNW
6ee4g1uiko6NDfkxMjUF+j9oqbXjFEy8m/sx8+TSyju5xa0e5PNNfWSLGQC5h5fn1PQ==
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=20251104 header.b=fEkeVsHu;
arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.128.180
X-Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180])
(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 B18DB606A319
for <git@vger.kernel.org>; Wed, 21 Oct 2026 21:21:08 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B18DB606A319
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-yw1-f180.google.com with SMTP id 00721157ae682-8b10d24345dso11816007b3.3
for <git@vger.kernel.org>; Wed, 21 Oct 2026 14:21:08 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1792617668; cv=none;
d=google.com; s=arc-20260327;
b=pJYrX77q0D+j2Ycx02IF5ooB6dqIbgrpY7Mv5XO2bj1YvyuQHJN7XcF5EIKXaN6fth
8aOcD4NqMULMMbRlSpT7kiq942FrtbJ8UQRAoi0A7z66DWhV81D07OHr26Y0AopQYgZz
d9RYRp+Pqdh01Hum5H4qWPHl55huIx8paWKD6Y4ZUTudargcxRbrLIESI530hWJ7/Yx9
3JjWz4+8JlFz5N2PyieoqOqlyflfCrwplmMFOzPSG9SrFnXzIxipQMBIQ6i+O+kZbz51
4p4+Q9JPSF1DU3mrvaN8SRUlRR/Yu4eug5QVjt4f8sjbhW79SEFmo7GzTadeKCxzqyW6
V7kA==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:dkim-signature;
bh=SHAAlqy1bmBfgg4hvHlOESgPdazNd74eSnwjHCq12l0=;
fh=IeFnzBTmwIJp8Dv/+kFoBDJb3gHqZ7ypCOUNkSvfZ40=;
b=kewZOLHYYyi3DGHJJYCjcm5KGgKG42BgKtshKH76TgbWuT0j4d41bVke3PfbZbx3aI
jn2d1BCqrpvjENctQob4Tzey0qBTVNjYUylrXXLVg7D6zQZ8gOHR08cm450MSMErySRj
5KXjVnBmk41mfCI7L9POSCwX/0K8/RLrbOGIAEPLtAw1yyLvlxnbz7/SMla3cgyndUfd
j1e6C/NRoefLcyUV7b/MyE+rTInnBvmW1/B3W7y3wVUM3A32KPpWBRK/8zyleqw38V2t
cULcVgSeWIZrnejRxjrX9e8dsnHGfNK316WQVvUpRzTBCItkeGnQK7tSErlUp9DdPaza
OXBQ==;
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=20251104; t=1792617667; x=1793222467; darn=vger.kernel.org;
h=content-transfer-encoding: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=SHAAlqy1bmBfgg4hvHlOESgPdazNd74eSnwjHCq12l0=;
b=fEkeVsHu59vSofDwSx9NmmZkxZEdGb9dhpK+2V7EU5kPdHmJEZ8T/Be2yJRluDRNAt
iyDAuS7DDTZEynwRjZhSfCBiVu0qOw+MM2pdN0NyHTjMrHe4c6KAHcho6LjkBQVLI1Ot
MSipcPHxwS1RDTQOvW+7AW12E+PU7JllWb05aGXl8OzOc7amzzYGbRtnsE85fTUMfRXP
EzkGtW6hf37eSjnvCoMX3UXuCTWT/Li0jhn2tsb1joD8OvdQ21nKifApUXOciz2V8Z6B
rQPTUvb2KVbwdG2kuobgh7QMQKMynQ589TpLeJ7ntR3AmYUbtFMK87P1SPFwmy6ujFpo
ac0Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792617667; x=1793222467;
h=content-transfer-encoding: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=SHAAlqy1bmBfgg4hvHlOESgPdazNd74eSnwjHCq12l0=;
b=uNZcFrQPTwRxCQIsNzw1QKKtoeTWMQVI20Bma6zOs7soQGxJr/z5fif3K3JIksx6Ct
XlSooa5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20900757b3.56.1792617667555; Wed, 21 Oct 2026
14:21:07 -0700 (PDT)
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: <xmqq33tyn5qi.fsf@gitster.g>
X-Gm-Features: AclHuK9S9eTK6gc-9LEdSa_Kkpfk8V1zwmZTh2mDEAa3wQm0u09NNXhd2Ai_3Hs
X-Cc: git@vger.kernel.org, christian.couder@gmail.com,
usmanakinyemi202@gmail.com, siddharthasthana31@gmail.com,
kaartic.sivaraam@gmail.com