summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2011-12-12 05:38:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-12-12 17:08:52 (GMT)
commitfbd09e41d571fb45ae702027f74bec345887749d (patch)
tree811aab46d944c63e27d75418e15d6d8e449ddd47 /refs.c
parent19b68b1e632ba989dc62d0956b7fd06978347370 (diff)
downloadgit-fbd09e41d571fb45ae702027f74bec345887749d.zip
git-fbd09e41d571fb45ae702027f74bec345887749d.tar.gz
git-fbd09e41d571fb45ae702027f74bec345887749d.tar.bz2
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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/refs.c b/refs.c
index d7d422f..1975792 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)
{
/*