summaryrefslogtreecommitdiff
path: root/submodule.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-12-12 19:53:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-12 20:35:22 (GMT)
commite724197f236aa1a4fa87a8e7dd1377dbd0199307 (patch)
treeddda111031aff6b51fbf9a83ef65fc3ee356f8b1 /submodule.h
parent7da9aba417868afa11ef0baa4078dc2dadde5333 (diff)
downloadgit-e724197f236aa1a4fa87a8e7dd1377dbd0199307.zip
git-e724197f236aa1a4fa87a8e7dd1377dbd0199307.tar.gz
git-e724197f236aa1a4fa87a8e7dd1377dbd0199307.tar.bz2
submodule: convert get_next_submodule to not rely on the_index
Instead of implicitly relying on the global 'the_index', convert 'get_next_submodule()' to use the index of the repository stored in the callback data 'struct submodule_parallel_fetch'. Since this removes the last user of the index compatibility macros, define 'NO_THE_INDEX_COMPATIBILITY_MACROS' to prevent future users of these macros in submodule.c. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.h')
-rw-r--r--submodule.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/submodule.h b/submodule.h
index e2a5de3..b9b7ef0 100644
--- a/submodule.h
+++ b/submodule.h
@@ -76,10 +76,12 @@ extern int should_update_submodules(void);
*/
extern const struct submodule *submodule_from_ce(const struct cache_entry *ce);
extern void check_for_new_submodule_commits(struct object_id *oid);
-extern int fetch_populated_submodules(const struct argv_array *options,
- const char *prefix, int command_line_option,
- int default_option,
- int quiet, int max_parallel_jobs);
+extern int fetch_populated_submodules(struct repository *r,
+ const struct argv_array *options,
+ const char *prefix,
+ int command_line_option,
+ int default_option,
+ int quiet, int max_parallel_jobs);
extern unsigned is_submodule_modified(const char *path, int ignore_untracked);
extern int submodule_uses_gitfile(const char *path);