🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1411

[PATCH 0/4] environment: move line ending config variables into repo_config_values

#1411
From: Aniket Gupta
Date: Sat, 24 Oct 2026 22:00
34 lines
11607 bytes
Hi,

This series moves the global variables behind core.autocrlf, core.eol
and core.safecrlf into 'struct repo_config_values' to continue the
libification effort.

The first patch passes 'repo' to the working tree conversion
functions which need it to read the values. The other three move one
variable each just like the earlier conversions.

An alternative to passing 'repo' would be to store the resolved values
in 'struct conv_attrs'. I went with passing it since that is what the
earlier conversions did, but I can change it if you prefer.

Aniket Gupta (4):
  convert: pass 'repo' to the working tree conversion functions
  environment: move auto_crlf into repo_config_values
  environment: move core_eol into repo_config_values
  environment: move global_conv_flags_eol into repo_config_values

 combine-diff.c      |   4 +-
 convert.c           | 107 +++++++++++++++++++++++++++++++-------------
 convert.h           |  60 +++++++------------------
 diff.c              |   2 +-
 entry.c             |  16 ++++---
 environment.c       |  43 +++++++++++++-----
 environment.h       |  26 +++++++++++
 object-file.c       |  11 +++--
 parallel-checkout.c |   8 ++--
 9 files changed, 177 insertions(+), 100 deletions(-)

-- 
2.43.0
Technical Details
Message-ID: <20261024220012.486-1-aniketgupta3001@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-73178-linux-kernel-git=dewy.ru

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-73178-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: [PATCH 0/4] environment: move line ending config variables into repo_config_values
Date: Sat, 24 Oct 2026 22:00:08 +0000
Organization: Usenet Network
Message-ID: <20261024220012.486-1-aniketgupta3001@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="872301"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:GlISt59+ym4P2GeoyTNV5uj4Ctg= sha256:EJL1L+gLoPORntXz29ZBIyV9E0iGuYmOVWiWkL7LbHI=
	sha1:4I9bshg1GGOkwnHMYVc9NPsThP0= sha256:RgtJfJzMbcv9jgSGwdDL5Nq2zx0SvIfrQswJW987ACY=
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 2424B1116AA; Sun, 25 Oct 2026 01:00:43 +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 fLDr7DBp-kut;
	Sun, 25 Oct 2026 01:00:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-73178-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 4F4E011003D; Sun, 25 Oct 2026 01:00:28 +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 D7244306CF; Sat, 24 Oct 2026 22:00:22 +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=1792879222;
	b=g5sgEOMBOVWCS5K2zA6J8MxyQcnvt7NM+R14qwotmWBQyqO1X5RT7x/qKKSZCEwOUKkE
	 BVMioMUGPG8k3le0ZYJ0ZB+8r/dO1DXk5LInk28ef/HtCdgIWIU9C72xinMxeoCa7oq0Y
	 Gsuu1FecBmfk3nePLu6UmfbsA5qd8DIexmE0x2KeQqljUugK2VjdrNi/rxvjKMKcD6lYa
	 rjxQMF7m7I15Sa1bmDe5YNCAn9vtgWkCosYfiBX+reg6y/f3mY1S6XrpUpzwvhacdXa7F
	 pvo3Q3G6Jf0P3RJeKDKLRT1ent0H2VbYnbzl8+AF78fqkuEzWcOJjFu8MpRCSvB5+VQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792879222;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
	bh=U4WdvLGayqddEoc/2tSeOSmz1mRq+uO7WeCiwt4eZuc=;
	b=TeVsndnQJQX3ngXjnbAb42ApE0S7YS5n4xWBS/PoVAnzcsw9Tcmpl4dMiGHCZ9YSawuO
	 2Re7EbR7mkjRZBsnsA5yEE+Pj7QhM3oFEUHt+9pMnsArK3K+QvoOogLE0yfP3Q6LDQI3J
	 bjMTZwyxQu/tT1VYThnfYOyzwXLo3csgaPgjRdgvA01c6YwwM/69mJaiERFfgIuRAhOjc
	 650I/Gp4OyqNMdIyhttdBXpMs+xullK6xzCmdRvjTYvdWVd6rXq/fdEnu+aDZ1ERRf9Pl
	 p2JBIlBaUuABXdtcxZInHWdBV5aUdCMG995OFIPUmywWRgspE0znz9/4fCgXieXpMXw==
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=20251104 header.b=P8CECPqb;
	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 66C6F606A321;
	Sat, 24 Oct 2026 22:00:22 +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=P8CECPqb
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.46
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792879221;
	b=zx6bfMTyqgPy1BaLZuI5bXnfkxZPyykp6Vk39iWslPTaJ2Si/624kyQYea9nZ94PkEZY
	 6Nc0QxmMIrgIGEu8ZmGCcy7ChsDT5fAx2Blznp0uKzlWk31EovMEL6Tq/LglPt/rmZKVL
	 WY/diAclSZtUOtau5lDdUb5sTYEBE1CgdWbSoBvI14FTOJDnjXQlj6pfuDftOfOa4rOrf
	 njvasCQh2YmyRh2uLmbafEwOyzh9vljypZbJ3uiPYpCs69OBkBiqmxyL9FJQXP86EI7E5
	 NA3ldnHQLttlOjl6Y47cAkc5dmXBO+wehvka4/O/efXbsqULTclpDIMu3tjhigde7Bg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792879221;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding;
	bh=U4WdvLGayqddEoc/2tSeOSmz1mRq+uO7WeCiwt4eZuc=;
	b=Qm0bqRZjont7DX/SMq+j6d6SMoH4HRv9rs08aTsRa+tJHrgctOU6HMzQ7suGA1HVyCT5
	 L5vt1QABtQvdE1lU0eV7qbVzrecmiSzcEbEU4WJmGcwVRGjWdRrAVPOjD7+yVGjSBwm3I
	 XFcYuGYV9Yzo+j34BYf128QXRHw+K0AnoFCgADKapYVQJWwjK5nWsxmWuUl0C1Rxu0J9h
	 EMmk4iIk8MmDTg0hB8FvAE/i6hGOy3iNS0k4rF+uZCGsV/vLJwbpe+MCL3GuvaUTptJcT
	 rVYjO26FWDw6K02hiM21rmiBjkLMO3ii2QaGg9LYxXUoNVmf0k+gyhpTtfkqDFMGwdw==
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=20251104 header.b=P8CECPqb;
	arc=none smtp.remote-ip=74.125.82.46
X-Received: from mail-dl1-f46.google.com (mail-dl1-f46.google.com [74.125.82.46])
	(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 2F890606A31D
	for <git@vger.kernel.org>; Sat, 24 Oct 2026 22:00:20 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2F890606A31D
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-f46.google.com with SMTP id a92af1059eb24-181516de561so1216402c88.1
        for <git@vger.kernel.org>; Sat, 24 Oct 2026 15:00:20 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1792879220; x=1793484020; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:message-id:date:subject:cc
         :to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
        bh=U4WdvLGayqddEoc/2tSeOSmz1mRq+uO7WeCiwt4eZuc=;
        b=P8CECPqb4xr1bmxf+E7uY62txfpX8j1dXGCNCXoVv3VRYlcOXQDzlsZ3vToSxp4e8T
         zhQJrMZ5XnVdbDQ9gkxb4NxemkjBLyiQkSgFWbHKmHWQnY2C9L6Wb4JY2S30i5u61UDp
         /1C1jB/Q1bcJGV7ZvOp0hzjV7aiF7TG3Rk896A5iTZ2RCrXGhwBkFXfoD3eypJLGG+Dn
         pcsJ9wYN5Moa2S1mZvj+COaQqmY25I5WyVDiS0i4szhWqRN3F8gsFoydZxOxJ0MdqcLb
         ymSvKhVJbdAV0CIm6STA5MvwxExGoZ125hFRxnstt9fRwtgAMRqZz8lLldjqrnfp0Qpr
         1CuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1792879220; x=1793484020;
        h=content-transfer-encoding:mime-version:message-id:date:subject:cc
         :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=U4WdvLGayqddEoc/2tSeOSmz1mRq+uO7WeCiwt4eZuc=;
        b=e0xHi3VLFgJywUA4gmc19IW7V/j+wpmq4PG4sItu/3sumU5+rwWJWNnW02g8ueu8ib
         7O1AMjbwkGo2fXVAS/tHxk3JQzWGtQEe9B+jVFvQdOJCXiivoabMjG88RJYxAk5LEWlP
         OWTCIE/3ct3xWIm6tIs7zCb2Htxdj72GWfb6rbLcCEA9dSmFx1MTCzuFpz+2NjdsN7WV
         ibnw4BmpJaJlsMXPI37O4tU4v3lcWnjgVE08g+nlWqnoFt4ToON0WBmsrcI/igLmpTlU
         tBotVCPSzoaz144YZ6sli82mM4cJ6J8H4YS4rwrIrPlv/avzzU2d6UBdp6h8Y8R7rpAX
         JmWQ==
X-Gm-Message-State: AFq9FYLkRcp5XGQNkrhEuxb6tIkPICZqU9RwcnapVUEje0VL8GnB4uG5
	w7e+KKkgpDr1z2RiDco68IoHX74aUQ4VdjZp9fLYwF451BGotrv9Sdd3ORjHlA1/18I=
X-Gm-Gg: AYBFou0iVUdbo4fYGdSkHiJ34/LFdBAP83wYmnr4x+Lcd4sWNTJCOuEuqC9+tT1nQ47
	y7DHFIyTDU/YIknIUctXQcyplT5zagYPtTtKT9Fyxl6ekByRg6RsOfkIricCBr7S658Zq7QRj31
	iX91vOMct8X9ipEZENfM1xPWYcAo/nD1r3d6JVG1HC7WkQ6gt6M5TU0DmjdvNfbThOvVOVx9GA0
	nJkvNUFa97MUFdXxwMdSIbftW6kUA7OJJkE2KYKwyW8Qo9scPtFlYlooI8oQwo6nc4/W0JEVaHr
	oQ9QfSxUTBRmwsHsusbbNXpWDG1Xk66gumAOlGsez3UZJmRtemUgPL/ERmPBfpXa9kO0+GXL4GN
	zzcFK6iASOZl0U1lQbAMDZMx67tCyMXvXIll90KQotDmGhbLmB02B+FdwXEnKS9TU+JtXSVYz1w
	hDoXhKYlZ/m3TZXucNJ0wDUMw9rLayMfBenksUN8nQG3L2tgs9HXDd3fnO+jv8PWWCNw4LQRBLK
	E02NXN+2XIGurmJJ9cRAikUC2NoggFSMRu7XDT1rks37g2vBz1D6DKH82E0eNLpmmy0NYhdZZKy
	nMKupm0Wi03ylHNwtIiau50WVQ9M6WZR5KAVOuWeJA==
X-Received: by 2002:a05:7022:51e:b0:14e:d0ba:75af with SMTP id a92af1059eb24-1994d8b728amr5675347c88.6.1792879219484;
        Sat, 24 Oct 2026 15:00:19 -0700 (PDT)
X-Received: from LAPTOP-PVRSMPQK.iiitd.edu.in ([103.25.231.125])
        by smtp.gmail.com with ESMTPSA id a92af1059eb24-198a0f81ea9sm11578875c88.11.2026.10.24.15.00.15
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sat, 24 Oct 2026 15:00:18 -0700 (PDT)
X-Cc: gitster@pobox.com,
	christian.couder@gmail.com,
	cat@malon.dev,
	belkid98@gmail.com,
	ps@pks.im,
	phillip.wood123@gmail.com
X-Mailer: git-send-email 2.56.0.240.gf97865f162
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