{"thread":{"id":"38869","subject":"cover letter and cc list","startedAt":"2015-03-20T17:35:04Z","lastAt":"2016-02-26T12:35:15Z","messageCount":4,"participants":["Olaf Hering","Junio C Hamano","Vineet Gupta"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"258139","messageId":"20150320173504.GA6162@aepfle.de","threadId":"38869","inReplyTo":null,"subject":"cover letter and cc list","fromName":"Olaf Hering","fromEmail":"olaf@aepfle.de","sentAt":"2015-03-20T17:35:04Z","receivedAt":"2015-03-20T17:35:04Z","isPatch":false,"sender":{"key":"olaf@aepfle.de","avatar":"https://avatars.githubusercontent.com/u/942324?v=4"},"body":"\nWhat does it take to send the cover letter to all people which are\nlisted in the Cc: list of the following patches? Each patch has a\ndifferent Cc: list. The \"git send-email --help\" command suggests that\nthis cmdline should do it. But the cover letter goes just to the address\nlisted in --to=:\n\nenv TMPDIR=/dev/shm LC_ALL=C git send-email -M --stat --annotate \\\n        --cover-letter --cc-cover --to=$address \\\n        $base..$head\n\nThanks,\n\nOlaf\n"},{"id":"258151","messageId":"xmqqpp83ee2z.fsf@gitster.dls.corp.google.com","threadId":"38869","inReplyTo":"20150320173504.GA6162@aepfle.de","subject":"Re: cover letter and cc list","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-03-20T18:08:52Z","receivedAt":"2015-03-20T18:08:52Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Olaf Hering <olaf@aepfle.de> writes:\n\n> What does it take to send the cover letter to all people which are\n> listed in the Cc: list of the following patches? Each patch has a\n> different Cc: list. The \"git send-email --help\" command suggests that\n> this cmdline should do it. But the cover letter goes just to the address\n> listed in --to=:\n>\n> env TMPDIR=/dev/shm LC_ALL=C git send-email -M --stat --annotate \\\n>         --cover-letter --cc-cover --to=$address \\\n>         $base..$head\n\nFirst step is not to drive format-patch from within send-email I\nwould think.  Instead prepare them in files in a directory (with\nformat-patch -o $dir).  You can edit Cc: header in 0000-*.patch\nmessage while you proof-read what you are going to send out.\n"},{"id":"258349","messageId":"20150323081840.GB9332@aepfle.de","threadId":"38869","inReplyTo":"xmqqpp83ee2z.fsf@gitster.dls.corp.google.com","subject":"Re: cover letter and cc list","fromName":"Olaf Hering","fromEmail":"olaf@aepfle.de","sentAt":"2015-03-23T08:18:40Z","receivedAt":"2015-03-23T08:18:40Z","isPatch":false,"sender":{"key":"olaf@aepfle.de","avatar":"https://avatars.githubusercontent.com/u/942324?v=4"},"body":"On Fri, Mar 20, Junio C Hamano wrote:\n\n> Olaf Hering <olaf@aepfle.de> writes:\n> \n> > What does it take to send the cover letter to all people which are\n> > listed in the Cc: list of the following patches? Each patch has a\n> > different Cc: list. The \"git send-email --help\" command suggests that\n> > this cmdline should do it. But the cover letter goes just to the address\n> > listed in --to=:\n> >\n> > env TMPDIR=/dev/shm LC_ALL=C git send-email -M --stat --annotate \\\n> >         --cover-letter --cc-cover --to=$address \\\n> >         $base..$head\n> \n> First step is not to drive format-patch from within send-email I\n> would think.  Instead prepare them in files in a directory (with\n> format-patch -o $dir).  You can edit Cc: header in 0000-*.patch\n> message while you proof-read what you are going to send out.\n\nThanks. Then I misinterpreted what --cc-cover actually means. All Cc:\nlines have to be present in the cover letter already. Would be nice if\ngit would run a command like this to put the list into the coverletter:\n\n # git log --format=%b $base..$head | grep -iw ^cc: | sort -u\n\nIn the meantime I will remember to do that step manually.\n\nOlaf\n"},{"id":"279519","messageId":"56D04683.3080201@synopsys.com","threadId":"38869","inReplyTo":"20150323081840.GB9332@aepfle.de","subject":"Re: cover letter and cc list","fromName":"Vineet Gupta","fromEmail":"vineet.gupta1@synopsys.com","sentAt":"2016-02-26T12:35:15Z","receivedAt":"2016-02-26T12:35:15Z","isPatch":false,"sender":{"key":"vineet.gupta1@synopsys.com","avatar":null},"body":"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA256\n\nOn Monday 23 March 2015 01:48 PM, Olaf Hering wrote:\n> On Fri, Mar 20, Junio C Hamano wrote:\n> \n>>> Olaf Hering <olaf@aepfle.de> writes:\n>>> \n>>>>> What does it take to send the cover letter to all people which are \n>>>>> listed in the Cc: list of the following patches? Each patch has a \n>>>>> different Cc: list. The \"git send-email --help\" command suggests\n>>>>> that this cmdline should do it. But the cover letter goes just to the\n>>>>> address listed in --to=:\n>>>>> \n>>>>> env TMPDIR=/dev/shm LC_ALL=C git send-email -M --stat --annotate \\ \n>>>>> --cover-letter --cc-cover --to=$address \\ $base..$head\n>>> \n>>> First step is not to drive format-patch from within send-email I would\n>>> think.  Instead prepare them in files in a directory (with format-patch\n>>> -o $dir).  You can edit Cc: header in 0000-*.patch message while you\n>>> proof-read what you are going to send out.\n> Thanks. Then I misinterpreted what --cc-cover actually means. All Cc: lines\n> have to be present in the cover letter already. Would be nice if git would\n> run a command like this to put the list into the coverletter:\n> \n> # git log --format=%b $base..$head | grep -iw ^cc: | sort -u\n> \n> In the meantime I will remember to do that step manually.\n> \n> Olaf\n\nI have the exact same requirement, to create a union of CC in patches for\ncover-letter. That way sending a series to different people gives them the right\ncontext with cover-letter and individual patch.\n\nNow man git send-email mentions --[no-]cc-cover. I quote\n\n\"emails found in Cc: headers in the first patch of the series (typically the\ncover letter) are added to the cc list for each email set...\"\n\nI certainly want the reverse, but the question is how does one get about getting\nan address in cover letter in first place.\n\nThx,\n- -Vineet\n\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v2\n\niQIcBAEBCAAGBQJW0EaDAAoJEGnX8d3iisJevuMQALMNQv7IiOTc78A0GMDZpBx4\ncAEY2mPu29uJG0rRq8vaWxwBEAAoIflqUEiv9ygHwtvI1YDBGgt3RsEuqTMdj1eI\nJboZy4cpn04XVKRtcEU1iXf8Qp5uGmOgBUSwP5VaawTpGxIn43KJjyFwvq7h9Sps\nlsuOtY5rO1xq1B4ktmolF93unwI5R68moNTHhpOilOcBwbNVApouMnJ0c64ritPw\nhn9pUWST+rtL9pbqUas4PRxHL4vUAhIQkswlxxZvaVhlC9WK6AY2nMTWmz0Pcmlc\nWbGD1nulGJMXkHR4G02GhSbO2zsy8o5vJii2inFCwl7eWC5LIdfc8w+ssDYJ9Zlz\nbeXuRxYy5zgQQzCpd9d1o7ZMjbSEuWizgPJ9a+lGPfqeqB/cp9emdbOUOc7CMhXn\n5C3nDtOIgkchnZw3otgbUmGQCbiIHTN4tMQHbXrp0suu2mPCkYA9H8SqBRANPy1k\nAfU1FCvgQBjGgezV4IOBLrqi3vqoacQqriYIyYmUq0rnuwI6fT09OwfvAa2uVugT\nBWuuzpW1gBiiSKfYstC+ZzoZCnD8Ia5HsaKNtFxfxia2ekFC50RTkSR3ScSVnlKI\n77uLzflHsoZvFrla1mgLn+D4pn3yzSUdcd9lFIBAkBqgR1T5mKjT3HaSDOdMDJRz\nKiRJrh3G8ZC7hYeAj3Kx\n=GzhS\n-----END PGP SIGNATURE-----\n"}]}