PU - --continue.

todo
Junio C Hamano 2006-02-20 19:43:02 -08:00
parent f00c80b871
commit b164a7b715
2 changed files with 10 additions and 3 deletions

2
Doit
View File

@ -1,6 +1,6 @@
#!/bin/sh

J='-l 1.5 -j'
J=

test -z "$(git diff --cached --name-status)" || {
echo >&2 "Repository unclean."

11
PU
View File

@ -9,8 +9,15 @@ case "$(git-diff-index --name-status HEAD)" in
*) echo 2>&1 "Local modifications exist."
exit 1;;
esac
git checkout pu &&
git reset --hard master &&

case "$1" in
--continue)
shift
;;
*)
git checkout pu &&
git reset --hard master || exit
esac
ORIG_HEAD=`git rev-parse ORIG_HEAD` || exit
LF='
'