X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=inline;f=git-format-patch.sh;h=351790c4494ec88c01063a4c97c487f9e015c339;hb=302ebfe52192fff9a2c1c612dff22325fd073acc;hp=7ee5d328c0324cc29a0f93a9ff4d9f8a8e19891e;hpb=3eeb419968c1f8f0a762a7127db770e9d9c8037d;p=git.git diff --git a/git-format-patch.sh b/git-format-patch.sh index 7ee5d328..351790c4 100755 --- a/git-format-patch.sh +++ b/git-format-patch.sh @@ -99,7 +99,7 @@ filelist=$tmp-files # 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" ;; @@ -131,7 +131,8 @@ do rev2=`expr "$revpair" : '.*\.\.\(.*\)'` ;; *) - usage + rev1="$revpair^" + rev2="$revpair" ;; esac git-rev-parse --verify "$rev1^0" >/dev/null 2>&1 ||