mirror of
https://github.com/git/git.git
synced 2026-01-12 13:53:11 +09:00
Luckily, as long as you use "git" wrapper, you are forward/backward compatible. Signed-off-by: Junio C Hamano <junkio@cox.net>
21 lines
276 B
Bash
Executable File
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)
|
|
|
|
|
|
|
|
|