summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 18:00:23 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 18:00:23 (GMT)
commitfc7ef1e8ae8c19c06a4fa3d574c13d793e66186a (patch)
tree217ae7c4628817bd61ec466c4c59a5f5941bffbb
parenta196d8d4238f582b6441e8e0c56764679c266231 (diff)
downloadgit-fc7ef1e8ae8c19c06a4fa3d574c13d793e66186a.zip
git-fc7ef1e8ae8c19c06a4fa3d574c13d793e66186a.tar.gz
git-fc7ef1e8ae8c19c06a4fa3d574c13d793e66186a.tar.bz2
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.
-rw-r--r--mailinfo.c3
1 files changed, 2 insertions, 1 deletions
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);