From: mhagger@alum.mit.edu Date: Fri, 28 Oct 2011 11:14:34 GMT Subject: [PATCH v3 07/14] parse_ref_line(): add docstring Message-ID: <1319800481-15138-8-git-send-email-mhagger@alum.mit.edu> In-Reply-To: <1319800481-15138-1-git-send-email-mhagger@alum.mit.edu> From: Michael Haggerty Signed-off-by: Michael Haggerty --- refs.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/refs.c b/refs.c index d3dcb3c..963291f 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) { /* -- 1.7.7