Aniket Gupta posted a four-patch series that moves the global variables behind core.autocrlf, core.eol and core.safecrlf into 'struct repo_config_values', as part of the libification effort.
The first patch adds a 'struct repository *' parameter to convert_to_working_tree_ca(), async_convert_to_working_tree_ca() and get_stream_filter_ca(), and updates the callers. The parameter is marked UNUSED for now, since these conversions depend on configuration such as core.autocrlf and core.eol. The other three patches each move one variable, with defaults set in repo_config_values_init() and config parsing in environment.c writing to the per-repository structure.
For auto_crlf and core_eol, the enum definitions stay in environment.h under the existing NEEDSWORK comment. Moving them to convert.h would create a circular dependency chain: convert.h, hash.h, repository.h, environment.h. For core.safecrlf, the series adds a getter, repo_global_conv_flags_eol(), and updates users in diff.c, combine-diff.c and object-file.c.
Gupta notes an alternative to passing 'repo': storing the resolved values in 'struct conv_attrs'. He chose the former because earlier conversions did so, and says he can change it if reviewers prefer. No reviews are in the excerpts yet.