[PATCH 5/5] replay: prevent the_repository from coming back
- From
Elijah Newren via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Feb 18, 2026, 09:15 UTC
- Message-ID
- <d75a71aef97701e476dc8e9c662620e20cc5b17b.1771406115.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.2048.git.1771406115.gitgitgadget@gmail.com>
From: Elijah Newren <newren@gmail.com>
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 <newren@gmail.com> --- replay.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/replay.c b/replay.c index f97d652f33..a962f53d03 100644 --- a/replay.c +++ b/replay.c @@ -11,6 +11,8 @@ #include "strmap.h" #include "tree.h" +#define the_repository DO_NOT_USE_THE_REPOSITORY + static const char *short_commit_name(struct repository *repo, struct commit *commit) {
-- gitgitgadget