Skip to content

Commit 360204c

Browse files
ydirsonJunio C Hamano
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e6bfaf3 commit 360204c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(char *buf, int len)
160160

161161
if (buf[len-1] == '\n')
162162
buf[--len] = 0;
163-
if (buf[0] == '#')
163+
if (buf[0] == '#' || buf[0] == '\0')
164164
return NULL;
165165
if ((len + 1) % 41) {
166166
bad_graft_data:

0 commit comments

Comments
 (0)