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>
This commit is contained in:
parent
e6bfaf3e33
commit
360204c324
2
commit.c
2
commit.c
@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(char *buf, int len)
|
|||||||
|
|
||||||
if (buf[len-1] == '\n')
|
if (buf[len-1] == '\n')
|
||||||
buf[--len] = 0;
|
buf[--len] = 0;
|
||||||
if (buf[0] == '#')
|
if (buf[0] == '#' || buf[0] == '\0')
|
||||||
return NULL;
|
return NULL;
|
||||||
if ((len + 1) % 41) {
|
if ((len + 1) % 41) {
|
||||||
bad_graft_data:
|
bad_graft_data:
|
||||||
|
Loading…
Reference in New Issue
Block a user