X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=remote.h;h=d0aba81ead1847e43a971362659abf1c1737c12f;hb=5e2f779cbf60997809130fde213736e1ea4f6f33;hp=326bffeb0c4dbf4e675e714ce74d77e0cf78fe70;hpb=203462347fce0eab563fe77640648a7e8ae64d3b;p=git.git diff --git a/remote.h b/remote.h index 326bffeb0..d0aba81ea 100644 --- a/remote.h +++ b/remote.h @@ -89,7 +89,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); /* @@ -154,4 +154,7 @@ struct ref *guess_remote_head(const struct ref *head, const struct ref *refs, int all); +/* Return refs which no longer exist on remote */ +struct ref *get_stale_heads(struct remote *remote, struct ref *fetch_map); + #endif