From patchwork Mon May 16 22:26:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC, v2, 09/15] send-pull-request: don't send all patches to everyone even with -a Date: Mon, 16 May 2011 22:26:09 -0000 From: Darren Hart X-Patchwork-Id: 4195 Message-Id: <6e537cbf69d1ea45eac44bf36ed1219fc05f5593.1305584418.git.dvhart@linux.intel.com> To: openembedded-core@lists.openembedded.org Cc: Koen Kooi 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 Cc: Khem Raj Cc: Koen Kooi --- 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 <