Changes between Version 11 and Version 12 of MergerTips


Ignore:
Timestamp:
Apr 23, 2018, 9:24:36 AM (6 years ago)
Author:
Tim Graham
Comment:

Updated "Pushing to a pull request branch" for my latest version

Legend:

Unmodified
Added
Removed
Modified
  • MergerTips

    v11 v12  
    99#!/bin/bash
    1010function prp(){
     11    IFS=':' read -r -a array <<< "$1"
    1112    url=`git config --get remote.origin.url`
    12     url=`echo $url | sed -e "s/:.*\//:$1\//g"`
    13     git push -f $url HEAD:$2
     13    url=`echo $url | sed -e "s/:.*\//:${array[0]}\//g"`
     14    git push -f $url HEAD:${array[1]}
    1415}
     16
    1517}}}
    1618Usage:
    17 `$ prp username branch_name`
     19`$ prp username:branch_name`
    1820
    19 `username` is pull request author's username, and `branch_name` is the branch name which is visible on the pull request page.
     21Copy `username:branch_name` from the pull request page.
    2022
    2123== Automating Backports ==
Back to Top