format-patch: "rev1.." should mean "rev1..HEAD"
"rev1.." should mean "rev1..HEAD"; git-diff users are familiar with that syntax. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -92,11 +92,18 @@ filelist=$tmp-files
|
|||||||
# 3. "rev1" "rev2 is equivalent to "rev1..rev2"
|
# 3. "rev1" "rev2 is equivalent to "rev1..rev2"
|
||||||
#
|
#
|
||||||
# We want to take a sequence of "rev1..rev2" in general.
|
# 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
|
case "$#,$1" in
|
||||||
1,?*..?*)
|
1,?*..?*)
|
||||||
# single "rev1..rev2"
|
# single "rev1..rev2"
|
||||||
;;
|
;;
|
||||||
|
1,?*..)
|
||||||
|
# single "rev1.." should mean "rev1..HEAD"
|
||||||
|
set x "$1"HEAD"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
1,*)
|
1,*)
|
||||||
# single rev1
|
# single rev1
|
||||||
set x "$1..HEAD"
|
set x "$1..HEAD"
|
||||||
|
Reference in New Issue
Block a user