diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2011-12-12 06:38:13 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-12 09:08:52 -0800 |
commit | fbd09e41d571fb45ae702027f74bec345887749d (patch) | |
tree | 811aab46d944c63e27d75418e15d6d8e449ddd47 /refs.c | |
parent | 19b68b1e632ba989dc62d0956b7fd06978347370 (diff) | |
download | git-fbd09e41d571fb45ae702027f74bec345887749d.tar.gz |
parse_ref_line(): add docstring
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { /* |