[GSOC PATCH v2 0/2] Stop depending on `the_repository` for core.attributesfile
- From
Ayush Chandekar <ayu.chandekar@gmail.com>
- Date
- Mar 10, 2025, 15:10 UTC
- Message-ID
- <20250310151048.69825-1-ayu.chandekar@gmail.com>
- In-Reply-To
- <20250309153321.254844-1-ayu.chandekar@gmail.com>
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(-)
-- 2.48.GIT