dm4
5/16/2013 - 6:29 PM

gistfile1.sh

# Usage: pr (pull request current branch into develop)
# Usage 2: pr stable (pull request current branch into stable)
 
function pr() {
    base=$1;
    if [ "$1" == "" ]; then
        base="develop"
    fi
    hub pull-request -b team:"$base" -h team:`git rev-parse --abbrev-ref HEAD`;
}