#!/bin/sh # # Rebuild "pu" from topic branches. # git status && exit git checkout pu && git reset --hard master && ORIG_HEAD=`git rev-parse ORIG_HEAD` || exit for H do (IFS=",$IFS"; git pull -n . $H) || exit done (IFS=",$IFS"; git show-branch master pu $* $ORIG_HEAD)