Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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 <>
  • Loading branch information...
commit 59a5775770e3e491b5af479b3bf72fb13ddd3dbf 1 parent 61adfd3
@peff peff authored gitster committed
Showing with 2 additions and 2 deletions.
  1. +1 −1  remote.c
  2. +1 −1  remote.h
2  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;
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.