git/PU
Junio C Hamano 32a1e64777 Adjust the support scripts to "git binary directory" change.
Luckily, as long as you use "git" wrapper, you are forward/backward
compatible.

Signed-off-by: Junio C Hamano <junkio@cox.net>
2005-11-06 01:55:31 -08:00

21 lines
276 B
Bash
Executable File

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