summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Dirson <ydirson@altern.org>2006-04-17 11:41:49 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-17 21:17:50 (GMT)
commit360204c324ca9178e2bcb4d75f3986201f8ac7e1 (patch)
tree511d1f10af5873842783b9d5ae43a21c5bef6d1b
parente6bfaf3e33beba9431490a4f5c7a9753986554c4 (diff)
downloadgit-360204c324ca9178e2bcb4d75f3986201f8ac7e1.zip
git-360204c324ca9178e2bcb4d75f3986201f8ac7e1.tar.gz
git-360204c324ca9178e2bcb4d75f3986201f8ac7e1.tar.bz2
Allow empty lines in info/grafts
In addition to the existing comment support, that just allows the user to use a convention that works pretty much everywhere else. Signed-off-by: Yann Dirson <ydirson@altern.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index 05c4c92..2717dd8 100644
--- a/commit.c
+++ b/commit.c
@@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(char *buf, int len)
if (buf[len-1] == '\n')
buf[--len] = 0;
- if (buf[0] == '#')
+ if (buf[0] == '#' || buf[0] == '\0')
return NULL;
if ((len + 1) % 41) {
bad_graft_data: