diff options
author | Heiko Voigt <hvoigt@hvoigt.net> | 2012-03-29 09:21:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-30 08:58:31 -0700 |
commit | a762e51ef2a39b0c326a1529dbe7f4cb303960db (patch) | |
tree | 0a346f0b519a0dcc4ff1beadbc40827cb2abc92d /submodule.h | |
parent | bcc0a3ea38a42a64878e11c5244ef2fcc967e05d (diff) | |
download | git-a762e51ef2a39b0c326a1529dbe7f4cb303960db.tar.gz |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h index 80e04f3c8c..fd58690453 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 |