Skip to content

Commit 59a5775

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 61adfd3 commit 59a5775

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ struct ref *alloc_ref(const char *name)
896896
return alloc_ref_with_prefix("", 0, name);
897897
}
898898

899-
static struct ref *copy_ref(const struct ref *ref)
899+
struct ref *copy_ref(const struct ref *ref)
900900
{
901901
struct ref *cpy;
902902
size_t len;

remote.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct refspec {
7070
extern const struct refspec *tag_refspec;
7171

7272
struct ref *alloc_ref(const char *name);
73-
73+
struct ref *copy_ref(const struct ref *ref);
7474
struct ref *copy_ref_list(const struct ref *ref);
7575

7676
int check_ref_type(const struct ref *ref, int flags);

0 commit comments

Comments
 (0)