]> code.ossystems Code Review - openembedded-core.git/commit
create-pull-request: Assume remote branch from local branch
authorDarren Hart <dvhart@linux.intel.com>
Thu, 5 Apr 2012 21:24:43 +0000 (14:24 -0700)
committerSaul Wold <sgw@linux.intel.com>
Tue, 10 Apr 2012 07:20:47 +0000 (00:20 -0700)
commit62570b7e3db44fbc3461f650abe6c4613940e068
treedfef860d8ceae143510e132f0aef7dba3a59d814
parent1a82989345fb98becb487d270fd93a5e6dffeb47
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 <dvhart@linux.intel.com>
scripts/create-pull-request