summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2008-10-18 10:44:18 +0200
committerJunio C Hamano <gitster@pobox.com>2008-10-18 06:53:47 -0700
commit59c69c0c656ebce2f7ce870b4913512597a98390 (patch)
treef2bcd14377a483929861a09cf929286da0f1700a /remote.h
parentb0b44bc7b26c8c4b4221a377ce6ba174b843cb8d (diff)
downloadgit-59c69c0c656ebce2f7ce870b4913512597a98390.tar.gz
make alloc_ref_from_str() the new alloc_ref()
With all calls to alloc_ref() gone, we can remove it and then we're free to give alloc_ref_from_str() the shorter name. It's a much nicer interface, as the callers always need to have a name string when they allocate a ref anyway and don't need to calculate and pass its length+1 any more. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/remote.h b/remote.h
index c6163ff5b1..d2e170ce66 100644
--- a/remote.h
+++ b/remote.h
@@ -55,9 +55,7 @@ struct refspec {
extern const struct refspec *tag_refspec;
-struct ref *alloc_ref(unsigned namelen);
-
-struct ref *alloc_ref_from_str(const char* str);
+struct ref *alloc_ref(const char *name);
struct ref *copy_ref_list(const struct ref *ref);