From: Elijah Newren via GitGitGadget Date: Fri, 20 Feb 2026 01:59:48 GMT Subject: [PATCH v2 6/6] replay: prevent the_repository from coming back Message-ID: <67db46f34f5a0a4a791479899b9dd954aaf5e9d9.1771552788.git.gitgitgadget@gmail.com> In-Reply-To: From: Elijah Newren Due to the use of DEFAULT_ABBREV, we cannot get rid of our usage of USE_THE_REPOSITORY_VARIABLE. We have removed all other uses of the_repository before, but without removing that definition, they keep coming back. Define the_repository to make it a compilation error so that they don't come back any more. Signed-off-by: Elijah Newren --- replay.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/replay.c b/replay.c index f97d652f33..a63f6714c4 100644 --- a/replay.c +++ b/replay.c @@ -11,6 +11,12 @@ #include "strmap.h" #include "tree.h" +/* + * We technically need USE_THE_REPOSITORY_VARIABLE for DEFAULT_ABBREV, but + * do not want to use the_repository. + */ +#define the_repository DO_NOT_USE_THE_REPOSITORY + static const char *short_commit_name(struct repository *repo, struct commit *commit) { -- gitgitgadget