From fc7ef1e8ae8c19c06a4fa3d574c13d793e66186a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 23 Jun 2005 11:00:23 -0700 Subject: Add "Index: " to the list of things that start a patch This way we don't get it in the commit message, even if the patch had been generated by cogito (or CVS, ugh) and people didn't add the proper "---" marker. diff --git a/mailinfo.c b/mailinfo.c index 6c4d589..ae279bf 100644 --- a/mailinfo.c +++ b/mailinfo.c @@ -193,7 +193,8 @@ static void handle_rest(void) do { if (!memcmp("diff -", line, 6) || - !memcmp("---", line, 3)) + !memcmp("---", line, 3) || + !memcmp("Index: ", line, 7)) out = patchfile; fputs(line, out); -- cgit v0.10.2-6-g49f6