Skip to content

Commit

Permalink
format-patch: "rev1.." should mean "rev1..HEAD"
Browse files Browse the repository at this point in the history
"rev1.." should mean "rev1..HEAD"; git-diff users are familiar
with that syntax.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Nov 5, 2005
1 parent fdd0897 commit bd7c8aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions git-format-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bd7c8aa

Please sign in to comment.