diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-13 11:14:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 19:01:05 +0200 |
commit | 219de841d9436d759fa52ea60625b60cda8476fd (patch) | |
tree | 7c738cd9a5325d72ae375982fad9c0a0331442d8 /refs | |
parent | config: don't depend on `the_repository` with branch conditions (diff) | |
download | git-219de841d9436d759fa52ea60625b60cda8476fd.tar.xz git-219de841d9436d759fa52ea60625b60cda8476fd.zip |
global: prepare for hiding away repo-less config functions
We're about to hide config functions that implicitly depend on
`the_repository` behind the `USE_THE_REPOSITORY_VARIABLE` macro. This
will uncover a bunch of dependents that transitively relied on the
global variable, but didn't define the macro yet.
Adapt them such that we define the macro to prepare for this change.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/packed-backend.c | 2 | ||||
-rw-r--r-- | refs/reftable-backend.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c index 89976aa359..ba2ad90d10 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -1,3 +1,5 @@ +#define USE_THE_REPOSITORY_VARIABLE + #include "../git-compat-util.h" #include "../config.h" #include "../dir.h" diff --git a/refs/reftable-backend.c b/refs/reftable-backend.c index bf4446afd3..df67923d21 100644 --- a/refs/reftable-backend.c +++ b/refs/reftable-backend.c @@ -1,3 +1,5 @@ +#define USE_THE_REPOSITORY_VARIABLE + #include "../git-compat-util.h" #include "../abspath.h" #include "../chdir-notify.h" |