summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 22:58:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 21:19:43 (GMT)
commitd000414e26654f6f13526e4b83c648d7119586f0 (patch)
tree4562ac589c3c0121f1d1f815a8ae2c5d4e352503 /remote.h
parenta2ac50cbfd232b5739bafaf6bfdb80c13633b732 (diff)
downloadgit-d000414e26654f6f13526e4b83c648d7119586f0.zip
git-d000414e26654f6f13526e4b83c648d7119586f0.tar.gz
git-d000414e26654f6f13526e4b83c648d7119586f0.tar.bz2
remote: convert apply_refspecs to take a struct refspec
Convert 'apply_refspecs()' to take a 'struct refspec' as a parameter instead of a list of 'struct refspec_item'. 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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/remote.h b/remote.h
index 1a45542..0b1fcc0 100644
--- a/remote.h
+++ b/remote.h
@@ -159,8 +159,7 @@ int ref_newer(const struct object_id *new_oid, const struct object_id *old_oid);
struct ref *ref_remove_duplicates(struct ref *ref_map);
extern int query_refspecs(struct refspec_item *specs, int nr, struct refspec_item *query);
-char *apply_refspecs(struct refspec_item *refspecs, int nr_refspec,
- const char *name);
+char *apply_refspecs(struct refspec *rs, const char *name);
int check_push_refs(struct ref *src, int nr_refspec, const char **refspec);
int match_push_refs(struct ref *src, struct ref **dst,