diff options
author | Brandon Williams <bmwill@google.com> | 2018-05-16 15:58:23 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-18 06:19:44 +0900 |
commit | 60fba4bf1670e6eabd61b04ebf86efedff866a50 (patch) | |
tree | 3842f24ebf2123b8359ceedc9818377e83dbd085 /submodule.h | |
parent | afb1aed403de404c1e09fae5b8028f6b8f6982d3 (diff) | |
download | git-60fba4bf1670e6eabd61b04ebf86efedff866a50.tar.gz |
submodule: convert push_unpushed_submodules to take a struct refspec
Convert 'push_unpushed_submodules()' to take a 'struct refspec' as a
parameter instead of an array of 'const char *'.
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h index e5526f6aaa..aae0c9c8ff 100644 --- a/submodule.h +++ b/submodule.h @@ -100,9 +100,10 @@ extern int submodule_touches_in_range(struct object_id *a, extern int find_unpushed_submodules(struct oid_array *commits, const char *remotes_name, struct string_list *needs_pushing); +struct refspec; extern int push_unpushed_submodules(struct oid_array *commits, const struct remote *remote, - const char **refspec, int refspec_nr, + const struct refspec *rs, const struct string_list *push_options, int dry_run); /* |