From: David Golden Date: Mon, 5 Oct 2009 21:46:36 +0000 (-0400) Subject: Explain using git send-email for patches X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d5f1d01166a325b29ccc86102d26e68def13786;p=p5sagit%2Fp5-mst-13.2.git Explain using git send-email for patches --- diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod index ec0294a..8f413a7 100644 --- a/pod/perlrepository.pod +++ b/pod/perlrepository.pod @@ -327,7 +327,8 @@ Now you should create a patch file for all your local changes: You should now send an email to perl5-porters@perl.org with a description of your changes, and include this patch file as an -attachment. +attachment. (See the next section for how to configure and use +git to send these emails for you.) If you want to delete your temporary branch, you may do so with: @@ -338,6 +339,29 @@ If you want to delete your temporary branch, you may do so with: % git branch -D orange Deleted branch orange. +=head2 Using git to send patch emails + +In your ~/git/perl repository, set the destination email to the perl5-porters +mailing list. + + $ git config sendemail.to perl5-porters@perl.org + +Then you can use git directly to send your patch emails: + + $ git send-email 0001-Rename-Leon-Brocard-to-Orange-Brocard.patch + +You may need to set some configuration variables for your particular email +service provider. For example, to set your global git config to send email via +a gmail account: + + $ git config --global sendemail.smtpserver smtp.gmail.com + $ git config --global sendemail.smtpssl 1 + $ git config --global sendemail.smtpuser YOURUSERNAME@gmail.com + +With this configuration, you will be prompted for your gmail password when you +run 'git send-email'. You can also configure C with your +password if you don't care about having your password in the .gitconfig file. + =head2 A note on derived files Be aware that many files in the distribution are derivative--avoid