aboutsummaryrefslogtreecommitdiffstats
path: root/trailer.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-13 11:14:21 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-13 10:01:05 -0700
commit219de841d9436d759fa52ea60625b60cda8476fd (patch)
tree7c738cd9a5325d72ae375982fad9c0a0331442d8 /trailer.c
parentf7d61c413530c53a55c5ff3fa345db6a9828943f (diff)
downloadgit-219de841d9436d759fa52ea60625b60cda8476fd.tar.gz
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 'trailer.c')
-rw-r--r--trailer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/trailer.c b/trailer.c
index 72e5136c73..682d74505b 100644
--- a/trailer.c
+++ b/trailer.c
@@ -1,3 +1,5 @@
+#define USE_THE_REPOSITORY_VARIABLE
+
#include "git-compat-util.h"
#include "config.h"
#include "environment.h"