summaryrefslogtreecommitdiff
path: root/submodule.h
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2012-03-29 07:21:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-03-30 15:58:31 (GMT)
commita762e51ef2a39b0c326a1529dbe7f4cb303960db (patch)
tree0a346f0b519a0dcc4ff1beadbc40827cb2abc92d /submodule.h
parentbcc0a3ea38a42a64878e11c5244ef2fcc967e05d (diff)
downloadgit-a762e51ef2a39b0c326a1529dbe7f4cb303960db.zip
git-a762e51ef2a39b0c326a1529dbe7f4cb303960db.tar.gz
git-a762e51ef2a39b0c326a1529dbe7f4cb303960db.tar.bz2
Refactor submodule push check to use string list instead of integer
This allows us to tell the user which submodules have not been pushed. Additionally this is helpful when we want to automatically try to push submodules that have not been pushed. 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h
index 80e04f3..fd58690 100644
--- a/submodule.h
+++ b/submodule.h
@@ -29,6 +29,7 @@ int fetch_populated_submodules(int num_options, const char **options,
unsigned is_submodule_modified(const char *path, int ignore_untracked);
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 check_submodule_needs_pushing(unsigned char new_sha1[20], const char *remotes_name);
+int find_unpushed_submodules(unsigned char new_sha1[20], const char *remotes_name,
+ struct string_list *needs_pushing);
#endif