summaryrefslogtreecommitdiff
path: root/git-format-patch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-05 19:50:24 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-05 19:50:24 (GMT)
commit87ce294c9129879f717f8749cae1c659e18a3823 (patch)
tree7bda83efef0ee677e4e743954bc00bdcf6a63874 /git-format-patch.sh
parent6ddc0964034342519a87fe013781abf31c6db6ad (diff)
parent3d95bf074e8532fd0643b886422eddd0768a3f2c (diff)
downloadgit-0.99.9d.zip
git-0.99.9d.tar.gz
git-0.99.9d.tar.bz2
GIT 0.99.9dv0.99.9d
This is primarily to include the 'git clone -l' (without -s) fix, first spotted and diagnosed by Linus and caused James Bottomley's repository to become unreadable. It also contains documentation updates happened on the "master" branch since 0.99.9c Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-format-patch.sh')
-rwxr-xr-xgit-format-patch.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-format-patch.sh b/git-format-patch.sh
index 0207ab1..5b93ff8 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"