parse_ref_line(): add docstring
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
19b68b1e63
commit
fbd09e41d5
5
refs.c
5
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)
|
||||
{
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user