{"thread":{"id":"1591","subject":"Fix git-mailinfo to understand empty commit messages","startedAt":"2005-08-19T07:59:41Z","lastAt":"2005-08-19T07:59:41Z","messageCount":1,"participants":["Marco Costalba"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"7552","messageId":"20050819075941.89094.qmail@web26308.mail.ukl.yahoo.com","threadId":"1591","inReplyTo":null,"subject":"Fix git-mailinfo to understand empty commit messages","fromName":"Marco Costalba","fromEmail":"mcostalba@yahoo.it","sentAt":"2005-08-19T07:59:41Z","receivedAt":"2005-08-19T07:59:41Z","isPatch":false,"sender":{"key":"mcostalba@gmail.com","avatar":null},"body":"In case of empty messages git-mailinfo ignores the \"---\"\nline adding dirty stuff in commit message otherwise empty\n\nSigned-off-by: Marco Costalba <mcostalba@yahoo.it>\n\n---\n\n tools/mailinfo.c |    6 ++++++\n 1 files changed, 6 insertions(+), 0 deletions(-)\n\n1ebfddf05e4655811157028091d03dfce39cc4f0\ndiff --git a/tools/mailinfo.c b/tools/mailinfo.c\n--- a/tools/mailinfo.c\n+++ b/tools/mailinfo.c\n@@ -273,6 +273,12 @@ int main(int argc, char ** argv)\n \t}\n \twhile (1) {\n \t\tint len = read_one_header_line(line, sizeof(line), stdin);\n+\t\t/* Check for empty messages */\n+\t\tif (!memcmp(\"---\", line, 3)) {\n+\t\t\tline[len] = '\\n';\n+\t\t\thandle_rest();\n+\t\t\tbreak;\n+\t\t}\n \t\tif (!len) {\n \t\t\thandle_body();\n \t\t\tbreak;\n\n\n\n\n\t\t\n____________________________________________________\nStart your day with Yahoo! - make it your home page \nhttp://www.yahoo.com/r/hs \n \n"}]}