Skip to content

Commit b164a7b

Browse files
author
Junio C Hamano
committed
PU - --continue.
1 parent f00c80b commit b164a7b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Doit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
J='-l 1.5 -j'
3+
J=
44

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

PU

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ case "$(git-diff-index --name-status HEAD)" in
99
*) echo 2>&1 "Local modifications exist."
1010
exit 1;;
1111
esac
12-
git checkout pu &&
13-
git reset --hard master &&
12+
13+
case "$1" in
14+
--continue)
15+
shift
16+
;;
17+
*)
18+
git checkout pu &&
19+
git reset --hard master || exit
20+
esac
1421
ORIG_HEAD=`git rev-parse ORIG_HEAD` || exit
1522
LF='
1623
'

0 commit comments

Comments
 (0)