You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
276 B

#!/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)