From: Michael Haggerty Date: Mon, 12 Dec 2011 05:38:13 +0000 (+0100) Subject: parse_ref_line(): add docstring X-Git-Tag: v1.7.9-rc0~35^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fbd09e41d571fb45ae702027f74bec345887749d?hp=--cc parse_ref_line(): add docstring Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- fbd09e41d571fb45ae702027f74bec345887749d diff --git a/refs.c b/refs.c index d7d422ffb9..197579205b 100644 --- a/refs.c +++ b/refs.c @@ -20,6 +20,11 @@ struct ref_array { struct ref_entry **refs; }; +/* + * Parse one line from a packed-refs file. Write the SHA1 to sha1. + * Return a pointer to the refname within the line (null-terminated), + * or NULL if there was a problem. + */ static const char *parse_ref_line(char *line, unsigned char *sha1) { /*