mbox series

[GSOC,v2,0/2] Stop depending on `the_repository` for core.attributesfile

Message ID 20250310151048.69825-1-ayu.chandekar@gmail.com (mailing list archive)
Headers show
Series Stop depending on `the_repository` for core.attributesfile | expand

Message

Ayush Chandekar March 10, 2025, 3:10 p.m. UTC
This series moves access to the "core.attributesfile" configuration into
`repo_settings`, eliminating the dependency on the global `the_repository`
instance. It also updates the relevant attribute-related code paths to use
a repository-scoped accessor. This is a part of the ongoing effort towards
libification of git.

Ayush Chandekar (2):
  environment: move access to "core.attributesfile" into repo settings
  attr: use `repo_settings_get_attributesfile_path()` and update callers

 attr.c               | 28 ++++++++++------------------
 attr.h               |  7 +++----
 builtin/check-attr.c |  2 +-
 builtin/var.c        |  2 +-
 config.c             |  5 -----
 environment.c        |  1 -
 environment.h        |  1 -
 repo-settings.c      | 11 +++++++++++
 repo-settings.h      |  3 +++
 9 files changed, 29 insertions(+), 31 deletions(-)