summaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorJohn Cai <johncai86@gmail.com>2024-09-13 23:16:17 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-13 23:33:30 +0200
commit836474560b653271a819c4de9fa60cb097df2067 (patch)
tree4d4476fdb1bf1d0a83515f4048042ed2454e5270 /commit.h
parentbuiltin: remove USE_THE_REPOSITORY for those without the_repository (diff)
downloadgit-836474560b653271a819c4de9fa60cb097df2067.tar.xz
git-836474560b653271a819c4de9fa60cb097df2067.zip
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>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 0e5fce543c..c3ddaaf30f 100644
--- a/commit.h
+++ b/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;