add_ref(): add docstring

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Dec 12, 2011 at 06:38 UTC 6af1038beef46b46077a873f66e6742d3c0fe99f
1 file changed +1
refs.c
+1
@@ -53,6 +53,7 @@ static const char *parse_ref_line(char *line, unsigned char *sha1)
53 return line;
54 }
55
56 +/* Add a ref_entry to the end of the ref_array (unsorted). */
57 static void add_ref(const char *refname, const unsigned char *sha1,
58 int flag, int check_name, struct ref_array *refs,
59 struct ref_entry **new_entry)