X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-format-patch.sh;h=b43ba3909c200b84e23d678408a0bf876fd3f3c6;hb=90279074ca5cc336a8bfffd47d19d089b291b432;hp=0207ab18a3876249a928e7539d8f594a4f6921f1;hpb=f51248eb482a7a0feacb04d02119c94d35845975;p=git.git diff --git a/git-format-patch.sh b/git-format-patch.sh index 0207ab18..b43ba390 100755 --- a/git-format-patch.sh +++ b/git-format-patch.sh @@ -92,11 +92,18 @@ filelist=$tmp-files # 3. "rev1" "rev2 is equivalent to "rev1..rev2" # # We want to take a sequence of "rev1..rev2" in general. +# Also, "rev1.." should mean "rev1..HEAD"; git-diff users are +# familiar with that syntax. case "$#,$1" in 1,?*..?*) # single "rev1..rev2" ;; +1,?*..) + # single "rev1.." should mean "rev1..HEAD" + set x "$1"HEAD + shift + ;; 1,*) # single rev1 set x "$1..HEAD"