diff --git a/git-format-patch.sh b/git-format-patch.sh
index 7ee5d328c0324cc29a0f93a9ff4d9f8a8e19891e..351790c4494ec88c01063a4c97c487f9e015c339 100755 (executable)
--- a/git-format-patch.sh
+++ b/git-format-patch.sh
# Also, "rev1.." should mean "rev1..HEAD"; git-diff users are
# familiar with that syntax.
-case "$#,$1" in
+case "$#,$1$2" in
1,?*..?*)
# single "rev1..rev2"
;;
rev2=`expr "$revpair" : '.*\.\.\(.*\)'`
;;
*)
- usage
+ rev1="$revpair^"
+ rev2="$revpair"
;;
esac
git-rev-parse --verify "$rev1^0" >/dev/null 2>&1 ||