Git development
 help / color / mirror / Atom feed
* [PATCH 0/4] environment: move line ending config variables into repo_config_values
@ 2026-10-24 22:00 Aniket Gupta
  2026-10-24 22:00 ` [PATCH 1/4] convert: pass 'repo' to the working tree conversion functions Aniket Gupta
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Aniket Gupta @ 2026-10-24 22:00 UTC (permalink / raw)
  To: git; +Cc: gitster, christian.couder, cat, belkid98, ps, phillip.wood123

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-26 15:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-24 22:00 [PATCH 0/4] environment: move line ending config variables into repo_config_values Aniket Gupta
2026-10-24 22:00 ` [PATCH 1/4] convert: pass 'repo' to the working tree conversion functions Aniket Gupta
2026-10-24 22:00 ` [PATCH 2/4] environment: move auto_crlf into repo_config_values Aniket Gupta
2026-10-24 22:00 ` [PATCH 3/4] environment: move core_eol " Aniket Gupta
2026-10-24 22:00 ` [PATCH 4/4] environment: move global_conv_flags_eol " Aniket Gupta
2026-10-26 12:27 ` [PATCH 0/4] environment: move line ending config variables " Patrick Steinhardt
2026-10-26 13:10   ` Aniket Gupta
2026-10-26 13:25     ` Patrick Steinhardt
2026-10-26 15:53   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox