Changes between Version 11 and Version 12 of MergerTips
- Timestamp:
- Apr 23, 2018, 9:24:36 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MergerTips
v11 v12 9 9 #!/bin/bash 10 10 function prp(){ 11 IFS=':' read -r -a array <<< "$1" 11 12 url=`git config --get remote.origin.url` 12 url=`echo $url | sed -e "s/:.*\//:$ 1\//g"`13 git push -f $url HEAD:$ 213 url=`echo $url | sed -e "s/:.*\//:${array[0]}\//g"` 14 git push -f $url HEAD:${array[1]} 14 15 } 16 15 17 }}} 16 18 Usage: 17 `$ prp username branch_name`19 `$ prp username:branch_name` 18 20 19 `username` is pull request author's username, and `branch_name` is the branch name which is visible onthe pull request page.21 Copy `username:branch_name` from the pull request page. 20 22 21 23 == Automating Backports ==