X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote.h;h=8b7ecf9197f2a9210299c9700cc88a92a796f714;hb=fa232d457ebc1620ab31be504068c38403497179;hp=d0aba81ead1847e43a971362659abf1c1737c12f;hpb=ff86bdd5cac70850eea4791bea78efa19b228ebe;p=git.git diff --git a/remote.h b/remote.h index d0aba81ea..8b7ecf919 100644 --- a/remote.h +++ b/remote.h @@ -11,6 +11,8 @@ struct remote { const char *name; int origin; + const char *foreign_vcs; + const char **url; int url_nr; int url_alloc; @@ -89,6 +91,11 @@ void ref_remove_duplicates(struct ref *ref_map); int valid_fetch_refspec(const char *refspec); struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec); +void free_refspec(int nr_refspec, struct refspec *refspec); + +char *apply_refspecs(struct refspec *refspecs, int nr_refspec, + const char *name); + int match_refs(struct ref *src, struct ref **dst, int nr_refspec, const char **refspec, int all);