projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge http://www.kernel.org/pub/scm/gitk/gitk
[git.git]
/
git-format-patch.sh
diff --git
a/git-format-patch.sh
b/git-format-patch.sh
index
7ee5d32
..
351790c
100755
(executable)
--- a/
git-format-patch.sh
+++ b/
git-format-patch.sh
@@
-99,7
+99,7
@@
filelist=$tmp-files
# Also, "rev1.." should mean "rev1..HEAD"; git-diff users are
# familiar with that syntax.
# Also, "rev1.." should mean "rev1..HEAD"; git-diff users are
# familiar with that syntax.
-case "$#,$1" in
+case "$#,$1
$2
" in
1,?*..?*)
# single "rev1..rev2"
;;
1,?*..?*)
# single "rev1..rev2"
;;
@@
-131,7
+131,8
@@
do
rev2=`expr "$revpair" : '.*\.\.\(.*\)'`
;;
*)
rev2=`expr "$revpair" : '.*\.\.\(.*\)'`
;;
*)
- usage
+ rev1="$revpair^"
+ rev2="$revpair"
;;
esac
git-rev-parse --verify "$rev1^0" >/dev/null 2>&1 ||
;;
esac
git-rev-parse --verify "$rev1^0" >/dev/null 2>&1 ||