Skip to content

Commit

Permalink
Allow empty lines in info/grafts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yann Dirson authored and Junio C Hamano committed Apr 17, 2006
1 parent e6bfaf3 commit 360204c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 360204c

Please sign in to comment.