add: pass in repo variable instead of global the_repository
With the repository variable available in the builtin function as an argument, pass this down into helper functions instead of using the global the_repository. Signed-off-by: John Cai <johncai86@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
5
commit.h
5
commit.h
@ -253,7 +253,10 @@ struct oid_array;
|
||||
struct ref;
|
||||
int for_each_commit_graft(each_commit_graft_fn, void *);
|
||||
|
||||
int interactive_add(const char **argv, const char *prefix, int patch);
|
||||
int interactive_add(struct repository *repo,
|
||||
const char **argv,
|
||||
const char *prefix,
|
||||
int patch);
|
||||
|
||||
struct commit_extra_header {
|
||||
struct commit_extra_header *next;
|
||||
|
Reference in New Issue
Block a user