Skip to content

Commit

Permalink
make copy_ref globally available
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Jun 7, 2011
1 parent 61adfd3 commit 59a5775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion remote.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 59a5775

Please sign in to comment.