Skip to content

Instantly share code, notes, and snippets.

@kofemann
Last active December 22, 2015 23:59
Show Gist options
  • Save kofemann/6550735 to your computer and use it in GitHub Desktop.
Save kofemann/6550735 to your computer and use it in GitHub Desktop.
post a series of patches into review board
#!/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