Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
format-patch: "rev1.." should mean "rev1..HEAD"
author
Junio C Hamano
<junkio@cox.net>
Sat, 5 Nov 2005 10:47:07 +0000
(
02:47
-0800)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 5 Nov 2005 10:48:29 +0000
(
02:48
-0800)
"rev1.." should mean "rev1..HEAD"; git-diff users are familiar
with that syntax.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-format-patch.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
fdd0897
)
diff --git
a/git-format-patch.sh
b/git-format-patch.sh
index 0207ab18a3876249a928e7539d8f594a4f6921f1..5b93ff80a06f385c11cdaa6b5a41eaee5ae9cbc1 100755
(executable)
--- 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"