summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a7a62f)
raw | patch | inline | side by side (parent: 9a7a62f)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 10 Oct 2006 02:19:45 +0000 (19:19 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 10 Oct 2006 02:19:45 +0000 (19:19 -0700) |
Defaulting to $replay for the sake of fixing cherry-pick was not
done conditionally, which broke git-revert.
Noticed by Luben.
Signed-off-by: Junio C Hamano <junkio@cox.net>
done conditionally, which broke git-revert.
Noticed by Luben.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-revert.sh | patch | blob | history |
diff --git a/git-revert.sh b/git-revert.sh
index 0784f74c18c4a5a2c34a37c16ba1ad094cd41a06..4fd81b6ed60e5877df85c1052057b0ad5410f4fe 100755 (executable)
--- a/git-revert.sh
+++ b/git-revert.sh
case "$0" in
*-revert* )
test -t 0 && edit=-e
+ replay=
me=revert
USAGE='[--edit | --no-edit] [-n] <commit-ish>' ;;
*-cherry-pick* )
+ replay=t
edit=
me=cherry-pick
USAGE='[--edit] [-n] [-r] [-x] <commit-ish>' ;;
esac
. git-sh-setup
-no_commit= replay=t
+no_commit=
while case "$#" in 0) break ;; esac
do
case "$1" in