summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 221e743)
raw | patch | inline | side by side (parent: 221e743)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 13 Oct 2005 01:31:41 +0000 (18:31 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 13 Oct 2005 01:31:41 +0000 (18:31 -0700) |
When feeding patches from standard input, and --interactive is specified,
quit, so that the user can re-run the command, instead of infinitely
looping.
Signed-off-by: Junio C Hamano <junkio@cox.net>
quit, so that the user can re-run the command, instead of infinitely
looping.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-am.sh | patch | blob | history |
diff --git a/git-am.sh b/git-am.sh
index 9e41e7031339670f8077a9fd0ca98c703cc35ea6..85d682669c21785c5b1f4b76fa95ac6104adbe07 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
echo "$sign" >"$dotest/sign"
echo "$utf8" >"$dotest/utf8"
echo "$keep" >"$dotest/keep"
- echo "$threeway" >"$dotest/3way"
echo 1 >"$dotest/next"
fi
else
SIGNOFF=
fi
-threeway=$(cat "$dotest/3way")
last=`cat "$dotest/last"`
this=`cat "$dotest/next"`
if test "$interactive" = t
then
+ test -t 0 ||
+ die "cannot be interactive without stdin connected to a terminal."
action=again
while test "$action" = again
do