Skip to content

Commit a464da8

Browse files
john-caigitster
authored andcommitted
annotate: remove usage of the_repository global
Remove the the_repository with the repository argument that gets passed down through the builtin function. Signed-off-by: John Cai <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 806b515 commit a464da8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

builtin/annotate.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
* Copyright (C) 2006 Ryan Anderson
55
*/
66

7-
#define USE_THE_REPOSITORY_VARIABLE
87
#include "git-compat-util.h"
98
#include "builtin.h"
109
#include "strvec.h"
1110

1211
int cmd_annotate(int argc,
1312
const char **argv,
1413
const char *prefix,
15-
struct repository *repo UNUSED)
14+
struct repository *repo)
1615
{
1716
struct strvec args = STRVEC_INIT;
1817
int i;
@@ -23,5 +22,5 @@ int cmd_annotate(int argc,
2322
strvec_push(&args, argv[i]);
2423
}
2524

26-
return cmd_blame(args.nr, args.v, prefix, the_repository);
25+
return cmd_blame(args.nr, args.v, prefix, repo);
2726
}

0 commit comments

Comments
 (0)