{"thread":{"id":"3898","subject":"[PATCH] Allow empty lines in info/grafts","startedAt":"2006-04-17T11:41:49Z","lastAt":"2006-04-17T21:42:12Z","messageCount":2,"participants":["Yann Dirson","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"18768","messageId":"20060417114149.28696.59020.stgit@gandelf.nowhere.earth","threadId":"3898","inReplyTo":null,"subject":"[PATCH] Allow empty lines in info/grafts","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2006-04-17T11:41:49Z","receivedAt":"2006-04-17T11:41:49Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"\nIn addition to the existing comment support, that just allows the user\nto use a convention that works pretty much everywhere else.\n\nSigned-off-by: Yann Dirson <ydirson@altern.org>\n---\n\n commit.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/commit.c b/commit.c\nindex 05c4c92..2717dd8 100644\n--- a/commit.c\n+++ b/commit.c\n@@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(cha\n \n \tif (buf[len-1] == '\\n')\n \t\tbuf[--len] = 0;\n-\tif (buf[0] == '#')\n+\tif (buf[0] == '#' || buf[0] == '\\0')\n \t\treturn NULL;\n \tif ((len + 1) % 41) {\n \tbad_graft_data:\n"},{"id":"18785","messageId":"7vbquzlw0b.fsf@assigned-by-dhcp.cox.net","threadId":"3898","inReplyTo":"20060417114149.28696.59020.stgit@gandelf.nowhere.earth","subject":"Re: [PATCH] Allow empty lines in info/grafts","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-04-17T21:42:12Z","receivedAt":"2006-04-17T21:42:12Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks; will apply.\n"}]}