From: Jeff King Date: Tue, 7 Jun 2011 23:03:03 +0000 (-0400) Subject: make copy_ref globally available X-Git-Tag: v1.7.7-rc0~59^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=59a5775;p=git.git make copy_ref globally available This is a useful function, and we have already made the similar alloc_ref and copy_ref_list available. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/remote.c b/remote.c index f073b1ecf..b8ecfa5d9 100644 --- a/remote.c +++ b/remote.c @@ -896,7 +896,7 @@ struct ref *alloc_ref(const char *name) return alloc_ref_with_prefix("", 0, name); } -static struct ref *copy_ref(const struct ref *ref) +struct ref *copy_ref(const struct ref *ref) { struct ref *cpy; size_t len; diff --git a/remote.h b/remote.h index 888d7c15d..9a30a9dba 100644 --- a/remote.h +++ b/remote.h @@ -70,7 +70,7 @@ struct refspec { extern const struct refspec *tag_refspec; struct ref *alloc_ref(const char *name); - +struct ref *copy_ref(const struct ref *ref); struct ref *copy_ref_list(const struct ref *ref); int check_ref_type(const struct ref *ref, int flags);