summaryrefslogtreecommitdiff
path: root/submodule.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 22:58:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 21:19:44 (GMT)
commit60fba4bf1670e6eabd61b04ebf86efedff866a50 (patch)
tree3842f24ebf2123b8359ceedc9818377e83dbd085 /submodule.h
parentafb1aed403de404c1e09fae5b8028f6b8f6982d3 (diff)
downloadgit-60fba4bf1670e6eabd61b04ebf86efedff866a50.zip
git-60fba4bf1670e6eabd61b04ebf86efedff866a50.tar.gz
git-60fba4bf1670e6eabd61b04ebf86efedff866a50.tar.bz2
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h
index e5526f6..aae0c9c 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);
/*