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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King 2011-06-07 19:03:03 -04:00 committed by Junio C Hamano
parent 61adfd3097
commit 59a5775770
2 changed files with 2 additions and 2 deletions

View File

@ -896,7 +896,7 @@ struct ref *alloc_ref(const char *name)
return alloc_ref_with_prefix("", 0, 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; struct ref *cpy;
size_t len; size_t len;

View File

@ -70,7 +70,7 @@ struct refspec {
extern const struct refspec *tag_refspec; extern const struct refspec *tag_refspec;
struct ref *alloc_ref(const char *name); struct ref *alloc_ref(const char *name);
struct ref *copy_ref(const struct ref *ref);
struct ref *copy_ref_list(const struct ref *ref); struct ref *copy_ref_list(const struct ref *ref);
int check_ref_type(const struct ref *ref, int flags); int check_ref_type(const struct ref *ref, int flags);