From e4f66ec2a8af56fb4d0a85df46bfaa3bb1409d31 Mon Sep 17 00:00:00 2001 From: Darren Hart Date: Fri, 13 May 2011 13:10:14 -0700 Subject: create-pull-request: provide an RFC mode via -c argument Currently it is difficult to know if a pull request is being sent for review or just to be pulled. Add a -c argument to add RFC to the subject prefix and a blurb requesting review to the cover letter. Signed-off-by: Darren Hart Acked-by: Joshua Lock Acked-by: Otavio Salvador Cc: Richard Purdie Cc: Saul Wold Cc: Paul Eggleton Cc: Joshua Lock Cc: Otavio Salvador --- scripts/create-pull-request | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/create-pull-request b/scripts/create-pull-request index 429421b24..202d99d12 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request @@ -3,12 +3,14 @@ ODIR=pull-$$ RELATIVE_TO="master" COMMIT_ID="HEAD" PREFIX="PATCH" +RFC=0 usage() { CMD=$(basename $0) cat < "$PM" +git request-pull $RELATIVE_TO $REMOTE_URL $COMMIT_ID >> "$PM" if [ $? -ne 0 ]; then echo "ERROR: git request-pull reported an error" exit 1 @@ -136,6 +145,17 @@ fi sed -n "0,\#$REMOTE_URL# p" "$PM" | sed -i "/BLURB HERE/ r /dev/stdin" "$CL" rm "$PM" +# If this is an RFC, make that clear in the cover letter +if [ $RFC -eq 1 ]; then +(cat <