Skip to content

Commit f9e2474

Browse files
committed
replay: prevent the_repository from coming back
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>
1 parent 3e6bb8c commit f9e2474

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

replay.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include "strmap.h"
1212
#include "tree.h"
1313

14+
#define the_repository DO_NOT_USE_THE_REPOSITORY
15+
1416
static const char *short_commit_name(struct repository *repo,
1517
struct commit *commit)
1618
{

0 commit comments

Comments
 (0)