From 2b56f7b8c60290a09a27cc764bc420efbbe373d3 Mon Sep 17 00:00:00 2001 From: Darren Hart Date: Fri, 13 May 2011 13:58:36 -0700 Subject: 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. (From OE-Core rev: 90ef7136087f1a16da3c8fc2decbed27a5debcd8) Signed-off-by: Darren Hart Acked-by: Otavio Salvador Cc: Khem Raj Cc: Koen Kooi Cc: Otavio Salvador Signed-off-by: Richard Purdie --- scripts/send-pull-request | 75 +++++++++++++++++++++++++++++------------------ 1 file changed, 47 insertions(+), 28 deletions(-) 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 <