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>

Jeff King committed Jun 7, 2011 at 19:03 UTC 59a5775770e3e491b5af479b3bf72fb13ddd3dbf
2 files changed +2 -2
remote.c
+1 -1
@@ -896,7 +896,7 @@ struct ref *alloc_ref(const char *name)
896 return alloc_ref_with_prefix("", 0, name);
897 }
898
899 -static struct ref *copy_ref(const struct ref *ref)
899 +struct ref *copy_ref(const struct ref *ref)
900 {
901 struct ref *cpy;
902 size_t len;
remote.h
+1 -1
@@ -70,7 +70,7 @@ struct refspec {
70 extern const struct refspec *tag_refspec;
71
72 struct ref *alloc_ref(const char *name);
73 -
73 +struct ref *copy_ref(const struct ref *ref);
74 struct ref *copy_ref_list(const struct ref *ref);
75
76 int check_ref_type(const struct ref *ref, int flags);