summaryrefslogtreecommitdiff
path: root/submodule.h
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2016-11-16 16:11:05 +0100
committerJunio C Hamano <gitster@pobox.com>2016-11-16 11:12:50 -0800
commit9cfa1c260fd10dadb2dfbb62f8e120a10cabfd06 (patch)
tree85b17ee9450d0e121639b026c39dd1a43bf77b98 /submodule.h
parent147394470c4be34038e520e74a017da6a3745e90 (diff)
downloadgit-9cfa1c260fd10dadb2dfbb62f8e120a10cabfd06.tar.gz
serialize collection of refs that contain submodule changes
We are iterating over each pushed ref and want to check whether it contains changes to submodules. Instead of immediately checking each ref lets first collect them and then do the check for all of them in one revision walk. Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.h')
-rw-r--r--submodule.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/submodule.h b/submodule.h
index d9e197a948..9454806dc5 100644
--- a/submodule.h
+++ b/submodule.h
@@ -3,6 +3,7 @@
struct diff_options;
struct argv_array;
+struct sha1_array;
enum {
RECURSE_SUBMODULES_CHECK = -4,
@@ -62,9 +63,9 @@ int submodule_uses_gitfile(const char *path);
int ok_to_remove_submodule(const char *path);
int merge_submodule(unsigned char result[20], const char *path, const unsigned char base[20],
const unsigned char a[20], const unsigned char b[20], int search);
-int find_unpushed_submodules(unsigned char new_sha1[20], const char *remotes_name,
+int find_unpushed_submodules(struct sha1_array *commits, const char *remotes_name,
struct string_list *needs_pushing);
-int push_unpushed_submodules(unsigned char new_sha1[20], const char *remotes_name);
+int push_unpushed_submodules(struct sha1_array *commits, const char *remotes_name);
void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir);
int parallel_submodules(void);