From patchwork Wed May 18 22:26:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [23/30] send-pull-request: don't send all patches to everyone even with -a Date: Wed, 18 May 2011 22:26:52 -0000 From: Saul Wold X-Patchwork-Id: 4463 Message-Id: <34a3ee9719663ff33a592c91addf9b8b665aaadc.1305756950.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org Cc: Koen Kooi From: Darren Hart Rather than sending every patch to every recipient of the entire series when -a is used, only send the cover letter to everyone and use git's --signed-off-by-cc feature to generate an auto cc list for the individual patches. Add a -c option to use --signed-off-by-cc to auto cc recipeients at the individual patch level. This is implied by -a. Using git to harvest the Cc list means only collecting Signed-off-by and Cc lines, rather than the more generic *-by lines previously. This is a fair trade-off for significantly reduced complexity. If users want to add Acked-by and Tested-by lines and want to use the -a feature, they should include those recipients as Cc lines as well. Now that we rely on git for auto-cc for the individual patches, make sure the user is prompted before sending each patch by forcing --confirm=always. Signed-off-by: Darren Hart Acked-by: Otavio Salvador Cc: Khem Raj Cc: Koen Kooi Cc: Otavio Salvador --- scripts/send-pull-request | 75 ++++++++++++++++++++++++++++----------------- 1 files changed, 47 insertions(+), 28 deletions(-) diff --git a/scripts/send-pull-request b/scripts/send-pull-request index b294d35..5a11d1f 100755 --- a/scripts/send-pull-request +++ b/scripts/send-pull-request @@ -1,36 +1,40 @@ #!/bin/bash AUTO=0 +AUTO_CL=0 # Prevent environment leakage to these vars. unset TO unset CC +unset AUTO_CC usage() { cat <