X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote.h;h=257a55538f3ff2d6330b84436a40d6ef972025a0;hb=974e6e42f7a66b69bd684af4f637ab064acfdf92;hp=de3d21b6626f64ffc54904eec6f26a614feab30a;hpb=a54c4edc511608fdba513cc94812c31fd4b497f6;p=git.git diff --git a/remote.h b/remote.h index de3d21b66..257a55538 100644 --- a/remote.h +++ b/remote.h @@ -45,6 +45,7 @@ struct remote { }; struct remote *remote_get(const char *name); +int remote_is_configured(const char *name); typedef int each_remote_fn(struct remote *remote, void *priv); int for_each_remote(each_remote_fn fn, void *priv); @@ -84,7 +85,7 @@ 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); -int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail, +int match_refs(struct ref *src, struct ref **dst, int nr_refspec, const char **refspec, int all); /*