From: Darren Hart Date: Fri, 13 May 2011 20:58:36 +0000 (-0700) Subject: send-pull-request: don't send all patches to everyone even with -a X-Git-Tag: 2011-1~1359 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=90ef7136087f1a16da3c8fc2decbed27a5debcd8;p=openembedded-core.git send-pull-request: don't send all patches to everyone even with -a 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 --- diff --git a/scripts/send-pull-request b/scripts/send-pull-request index b294d35bd5..5a11d1f1e6 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 <