From 737922aa648c43bc6a61170bee5bfd46ff953f32 Mon Sep 17 00:00:00 2001 From: Krzysztof Kowalczyk Date: Sat, 10 May 2008 16:26:58 -0700 Subject: alloc_ref_from_str(): factor out a common pattern of alloc_ref from string Also fix an underallocation in walker.c::interpret_target(). Signed-off-by: Krzysztof Kowalczyk Signed-off-by: Junio C Hamano --- remote.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'remote.h') diff --git a/remote.h b/remote.h index 75d006b6de..2ee83a33b3 100644 --- a/remote.h +++ b/remote.h @@ -54,6 +54,8 @@ struct refspec { struct ref *alloc_ref(unsigned namelen); +struct ref *alloc_ref_from_str(const char* str); + struct ref *copy_ref_list(const struct ref *ref); int check_ref_type(const struct ref *ref, int flags); -- cgit v1.2.3