Guest User

Untitled

a guest
Jan 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. error() {
  4. test -z $1 || echo $1
  5. exit
  6. }
  7.  
  8. SHA=$1
  9.  
  10. BRANCH=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
  11. test $BRANCH=review-edit || error "Not on review-edit branch"
  12.  
  13. git notes edit review-edit && \
  14. git rebase --onto review-edit $SHA review && \
  15. git branch -d review-edit
Add Comment
Please, Sign In to add comment