mirror of
https://github.com/git/git.git
synced 2026-01-12 05:43:12 +09:00
23 lines
292 B
Bash
Executable File
23 lines
292 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Rebuild "pu" from topic branches.
|
|
#
|
|
|
|
. git-sh-setup
|
|
|
|
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)
|
|
|
|
|
|
|
|
|