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>
This commit is contained in:

committed by
Junio C Hamano

parent
5c7ec8462d
commit
afb1aed403
2
remote.h
2
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,
|
||||
|
Reference in New Issue
Block a user