mirror of
https://github.com/git/git.git
synced 2026-08-09 17:40:16 +00:00
PU - --continue.
This commit is contained in:
2
Doit
2
Doit
@@ -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
11
PU
@@ -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='
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user