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.
maint
Linus Torvalds 2005-06-23 11:00:23 -07:00
parent a196d8d423
commit fc7ef1e8ae
1 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,8 @@ static void handle_rest(void)


do { do {
if (!memcmp("diff -", line, 6) || if (!memcmp("diff -", line, 6) ||
!memcmp("---", line, 3)) !memcmp("---", line, 3) ||
!memcmp("Index: ", line, 7))
out = patchfile; out = patchfile;


fputs(line, out); fputs(line, out);