From: Darren Hart Date: Thu, 5 Apr 2012 21:24:43 +0000 (-0700) Subject: create-pull-request: Assume remote branch from local branch X-Git-Tag: 2015-4~11045 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=62570b7e3db44fbc3461f650abe6c4613940e068;p=openembedded-core.git create-pull-request: Assume remote branch from local branch It is common to use the same remote branch name as the local branch name. In this case, it would be nice not to have to specify the remote branch name. Make the -b argument optional and assume the remote branch is the same name as the local branch. Print a NOTE to this effect so as not to catch the user by surprise: NOTE: Assuming remote branch 'notthere', use -b to override. If the remote branch doesn't exist, a WARNING is displayed just as if the user had used -b to specify a non-existent branch: WARNING: Branch 'notthere' was not found on the contrib git tree. Please check your remote and branch parameter before sending. Signed-off-by: Darren Hart --- diff --git a/scripts/create-pull-request b/scripts/create-pull-request index 600fa7a341..9a8913db72 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request @@ -34,8 +34,8 @@ RFC=0 usage() { CMD=$(basename $0) cat <