X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote.h;h=091b1d041f8a4d255f59bfc001e098e692dbc15c;hb=3814c07498f87e7d27b55175ca2852fcc4cd27f4;hp=a38774bbdc5acfb5ed9360ac92e1049fa79b26e1;hpb=008442f5e798e511cc0cd5d9443552b0d107d558;p=git.git diff --git a/remote.h b/remote.h index a38774bbd..091b1d041 100644 --- a/remote.h +++ b/remote.h @@ -26,6 +26,7 @@ struct remote { */ int fetch_tags; int skip_default_update; + int mirror; const char *receivepack; const char *uploadpack; @@ -46,13 +47,18 @@ int remote_has_url(struct remote *remote, const char *url); struct refspec { unsigned force : 1; unsigned pattern : 1; + unsigned matching : 1; char *src; char *dst; }; +extern const struct refspec *tag_refspec; + struct ref *alloc_ref(unsigned namelen); +struct ref *alloc_ref_from_str(const char* str); + struct ref *copy_ref_list(const struct ref *ref); int check_ref_type(const struct ref *ref, int flags); @@ -62,6 +68,8 @@ int check_ref_type(const struct ref *ref, int flags); */ void free_refs(struct ref *ref); +int resolve_remote_symref(struct ref *ref, struct ref *list); + /* * Removes and frees any duplicate refs in the map. */ @@ -121,4 +129,8 @@ enum match_refs_flags { MATCH_REFS_MIRROR = (1 << 1), }; +/* Reporting of tracking info */ +int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs); +int format_tracking_info(struct branch *branch, struct strbuf *sb); + #endif