summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a19f901)
raw | patch | inline | side by side (parent: a19f901)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 10 Nov 2006 21:39:01 +0000 (13:39 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 10 Nov 2006 21:44:39 +0000 (13:44 -0800) |
The graft file can contain comment lines and read_graft_line can
return NULL for such an input, which should be skipped by the
reader.
Signed-off-by: Junio C Hamano <junkio@cox.net>
return NULL for such an input, which should be skipped by the
reader.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-blame.c | patch | blob | history |
diff --git a/builtin-blame.c b/builtin-blame.c
index 16660221c30b0e3b1e1bd4cbc5559e3f162ae05a..066dee743e9fdd80478395c605d9afc4682600c6 100644 (file)
--- a/builtin-blame.c
+++ b/builtin-blame.c
/* The format is just "Commit Parent1 Parent2 ...\n" */
int len = strlen(buf);
struct commit_graft *graft = read_graft_line(buf, len);
- register_commit_graft(graft, 0);
+ if (graft)
+ register_commit_graft(graft, 0);
}
fclose(fp);
return 0;