summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 19b68b1)
raw | patch | inline | side by side (parent: 19b68b1)
author | Michael Haggerty <mhagger@alum.mit.edu> | |
Mon, 12 Dec 2011 05:38:13 +0000 (06:38 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 12 Dec 2011 17:08:52 +0000 (09:08 -0800) |
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c | patch | blob | history |
index d7d422ffb9917b69287b54904aff2c7f30a23d62..197579205bf8dcc2dc2c1950ef27c7385a50697a 100644 (file)
--- a/refs.c
+++ b/refs.c
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)
{
/*