Skip to content

Commit

Permalink
annotate: remove usage of the_repository global
Browse files Browse the repository at this point in the history
Remove the the_repository with the repository argument that gets passed
down through the builtin function.

Signed-off-by: John Cai <[email protected]>
  • Loading branch information
john-cai authored and John Cai committed Oct 4, 2024
1 parent 8009fdb commit 1b82b5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions builtin/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
* Copyright (C) 2006 Ryan Anderson
*/

#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "builtin.h"
#include "strvec.h"

int cmd_annotate(int argc,
const char **argv,
const char *prefix,
struct repository *repo UNUSED)
struct repository *repo)
{
struct strvec args = STRVEC_INIT;
int i;
Expand All @@ -23,5 +22,5 @@ int cmd_annotate(int argc,
strvec_push(&args, argv[i]);
}

return cmd_blame(args.nr, args.v, prefix, the_repository);
return cmd_blame(args.nr, args.v, prefix, repo);
}

0 comments on commit 1b82b5d

Please sign in to comment.