summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 22:58:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 21:19:44 (GMT)
commitafb1aed403de404c1e09fae5b8028f6b8f6982d3 (patch)
treed539c201158ef7b72b406287cf10e7374d013ab9 /remote.h
parent5c7ec8462d8706f9731f0d54ea3fdfe810d60a88 (diff)
downloadgit-afb1aed403de404c1e09fae5b8028f6b8f6982d3.zip
git-afb1aed403de404c1e09fae5b8028f6b8f6982d3.tar.gz
git-afb1aed403de404c1e09fae5b8028f6b8f6982d3.tar.bz2
remote: convert check_push_refs to take a struct refspec
Convert 'check_push_refs()' 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 'remote.h')
-rw-r--r--remote.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.h b/remote.h
index 74c5574..62a6566 100644
--- a/remote.h
+++ b/remote.h
@@ -161,7 +161,7 @@ struct ref *ref_remove_duplicates(struct ref *ref_map);
int query_refspecs(struct refspec *rs, struct refspec_item *query);
char *apply_refspecs(struct refspec *rs, const char *name);
-int check_push_refs(struct ref *src, int nr_refspec, const char **refspec);
+int check_push_refs(struct ref *src, struct refspec *rs);
int match_push_refs(struct ref *src, struct ref **dst,
struct refspec *rs, int flags);
void set_ref_status_for_push(struct ref *remote_refs, int send_mirror,