Skip to content

environment: move line ending config variables into repo_config_values

Aniket Gupta git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4convert: pass 'repo' to the working tree conversion functionsconvert.c convert.h entry.c +1 more+67 -340 replies
2/4environment: move auto_crlf into repo_config_valuesconvert.c convert.h environment.c +1 more+60 -380 replies
3/4environment: move core_eol into repo_config_valuesconvert.c convert.h environment.c +1 more+29 -200 replies
4/4environment: move global_conv_flags_eol into repo_config_valuescombine-diff.c convert.h diff.c +3 more+24 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.43.0