X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-format-patch.sh;h=351790c4494ec88c01063a4c97c487f9e015c339;hb=fbf8ac212caa74fc506434da83f8e9630b09ed12;hp=548d2d5847ee3ae34605316d34abef7c22832540;hpb=93d69d86912c44206543f6670e93f9fc6f2f859f;p=git.git diff --git a/git-format-patch.sh b/git-format-patch.sh index 548d2d58..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 || @@ -201,7 +202,7 @@ process_one () { ;; esac - eval "$(sed -ne "$whosepatchScript" $commsg)" + eval "$(LANG=C LC_ALL=C sed -ne "$whosepatchScript" $commsg)" test "$author,$au" = ",$me" || { mailScript="$mailScript"' a\