Last active
December 22, 2015 23:59
-
-
Save kofemann/6550735 to your computer and use it in GitHub Desktop.
post a series of patches into review board
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# post a series of patches into review board | |
# | |
# | |
MASTER=master | |
BRANCH="$(git symbolic-ref HEAD 2>/dev/null)" | |
BRANCH=${BRANCH##refs/heads/} | |
git log --reverse --format='%H' ${MASTER}..HEAD | \ | |
while read rev | |
do | |
git checkout -q ${rev} | |
rbt post --parent=${rev}~1 | |
done | |
# go back | |
git checkout ${BRANCH} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment