@matheusbsbs / matheus-bagliano / commits / 360204c324
Fork 0

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>

Yann Dirson committed Apr 17, 2006 at 13:41 UTC 360204c324ca9178e2bcb4d75f3986201f8ac7e1
1 file changed +1 -1
commit.c
+1 -1
@@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(char *buf, int len)
160
161 if (buf[len-1] == '\n')
162 buf[--len] = 0;
163 - if (buf[0] == '#')
163 + if (buf[0] == '#' || buf[0] == '\0')
164 return NULL;
165 if ((len + 1) % 41) {
166 bad_graft_data: