Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
make copy_ref globally available
author
Jeff King
<peff@peff.net>
Tue, 7 Jun 2011 23:03:03 +0000
(19:03 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 7 Jun 2011 23:07:07 +0000
(16:07 -0700)
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>
remote.c
patch
|
blob
|
history
remote.h
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
61adfd3
)
diff --git
a/remote.c
b/remote.c
index f073b1ecf56e5549374bcea036474ed987485581..b8ecfa5d9558e3824872ad6778fc344681cc8d5c 100644
(file)
--- a/
remote.c
+++ b/
remote.c
@@
-896,7
+896,7
@@
struct ref *alloc_ref(const char *name)
return alloc_ref_with_prefix("", 0, name);
}
-st
atic st
ruct ref *copy_ref(const struct ref *ref)
+struct ref *copy_ref(const struct ref *ref)
{
struct ref *cpy;
size_t len;
diff --git
a/remote.h
b/remote.h
index 888d7c15de2eacc56d869a96d4463aefca7a7a06..9a30a9dba64825950f7a0448ad8b64581c0b8fae 100644
(file)
--- a/
remote.h
+++ b/
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);