{"thread":{"id":"2958","subject":"Howto send many commits as mail-patches?","startedAt":"2006-01-03T11:38:59Z","lastAt":"2006-01-03T17:24:17Z","messageCount":2,"participants":["Sam Ravnborg","Ryan Anderson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"14134","messageId":"20060103113859.GA15832@mars.ravnborg.org","threadId":"2958","inReplyTo":null,"subject":"Howto send many commits as mail-patches?","fromName":"Sam Ravnborg","fromEmail":"sam@ravnborg.org","sentAt":"2006-01-03T11:38:59Z","receivedAt":"2006-01-03T11:38:59Z","isPatch":false,"sender":{"key":"sam@ravnborg.org","avatar":"https://gravatar.com/avatar/168a912606ed0742d840bb365e3cc21db390c36531a58341dc7a069cc1f15f62?d=mp&s=160"},"body":"Hi all.\n\nI have a collection of commits in my GIT repository that I like to send\nout to linux-kernel.\nBut my initial experiments with git-send-emails.perl fall out bad.\n\nI did the following:\n\n1) First I created a mbox with the patches:\ngit format-patch -n --mbox --stdout -M -B b286e39207237e2f6929959372bf66d9a8d05a82 > mbox\n\nThe mbox looked OK. -M -B were from the man page and since the patchset\nincludes a number of renames it made the mbox considerably smaller.\n\nSo I went on an tried to send the mails:\ngit-send-email.perl --from \"Sam Ravnborg <sam@ravnborg.org>\" --to \"sam@ravnborg.org\" --chain-reply-to \"\" mbox\n\nIt just send out two huge mails containing all of the mbox.\nAlso it cc:ed all people included in \"Signed-off-by\". That is sometimes\na nice feature but for testing I like it to be optional.\n\nCan someone give me a nice howto so I can see how to send out the mails.\n\nTIA,\n\tSam\n"},{"id":"14141","messageId":"20060103172416.GA23896@mythryan2.michonline.com","threadId":"2958","inReplyTo":"20060103113859.GA15832@mars.ravnborg.org","subject":"Re: Howto send many commits as mail-patches?","fromName":"Ryan Anderson","fromEmail":"ryan@michonline.com","sentAt":"2006-01-03T17:24:17Z","receivedAt":"2006-01-03T17:24:17Z","isPatch":false,"sender":{"key":"ryan@michonline.com","avatar":null},"body":"On Tue, Jan 03, 2006 at 12:38:59PM +0100, Sam Ravnborg wrote:\n> Hi all.\n> \n> I have a collection of commits in my GIT repository that I like to send\n> out to linux-kernel.\n> But my initial experiments with git-send-emails.perl fall out bad.\n> \n> I did the following:\n> \n> 1) First I created a mbox with the patches:\n> git format-patch -n --mbox --stdout -M -B b286e39207237e2f6929959372bf66d9a8d05a82 > mbox\n\n\n> The mbox looked OK. -M -B were from the man page and since the patchset\n> includes a number of renames it made the mbox considerably smaller.\n> \n> So I went on an tried to send the mails:\n> \n> It just send out two huge mails containing all of the mbox.\n> Also it cc:ed all people included in \"Signed-off-by\". That is sometimes\n> a nice feature but for testing I like it to be optional.\n> \n> Can someone give me a nice howto so I can see how to send out the mails.\n\nTry:\n\tmkdir ../pending/\n\tgit format-patch -n --mbox -o ../pending/ -M -B b286e39207237e2f6929959372bf66d9a8d05a82\n\tgit-send-email.perl --from \"Sam Ravnborg <sam@ravnborg.org>\" --to \"sam@ravnborg.org\" --chain-reply-to \"\" ../pending/\n\nWith this method, you can examine the files in ../pending/, edit patch\ncomments if you want, add an \"introductory\" mail, etc.\n\nThe Signed-off-by: cc:ing is currently not something that can be\ndisabled, but you can do something like this to stop it temporarily:\n\n(cut and pasted, so it probably won't directly apply)\ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex ec1428d..9c7d0b8 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -322,7 +322,7 @@ foreach my $t (@files) {\n                        }\n                } else {\n                        $message .=  $_;\n-                       if (/^Signed-off-by: (.*)$/i) {\n+                       if (/^XSigned-off-by: (.*)$/i) {\n                                my $c = $1;\n                                chomp $c;\n                                push @cc, $c;\n\nHope that helped,\n\n-- \n\nRyan Anderson\n  sometimes Pug Majere\n"}]}