提交 fc7ef1e8 编写于 作者: L Linus Torvalds

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.
上级 a196d8d4
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册