projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-config-set: support selecting values by non-matching regex
[git.git]
/
git-format-patch.sh
diff --git
a/git-format-patch.sh
b/git-format-patch.sh
index
5b93ff8
..
7ee5d32
100755
(executable)
--- a/
git-format-patch.sh
+++ b/
git-format-patch.sh
@@
-8,6
+8,7
@@
usage () {
echo >&2 "usage: $0"' [-n] [-o dir | --stdout] [--keep-subject] [--mbox]
[--check] [--signoff] [-<diff options>...]
usage () {
echo >&2 "usage: $0"' [-n] [-o dir | --stdout] [--keep-subject] [--mbox]
[--check] [--signoff] [-<diff options>...]
+ [--help]
( from..to ... | upstream [ our-head ] )
Prepare each commit with its patch since our-head forked from upstream,
( from..to ... | upstream [ our-head ] )
Prepare each commit with its patch since our-head forked from upstream,
@@
-63,6
+64,9
@@
do
--output-directo|--output-director|--output-directory)
case "$#" in 1) usage ;; esac; shift
outdir="$1" ;;
--output-directo|--output-director|--output-directory)
case "$#" in 1) usage ;; esac; shift
outdir="$1" ;;
+ -h|--h|--he|--hel|--help)
+ usage
+ ;;
-*' '* | -*"$LF"* | -*' '*)
# Ignore diff option that has whitespace for now.
;;
-*' '* | -*"$LF"* | -*' '*)
# Ignore diff option that has whitespace for now.
;;
@@
-101,7
+105,7
@@
case "$#,$1" in
;;
1,?*..)
# single "rev1.." should mean "rev1..HEAD"
;;
1,?*..)
# single "rev1.." should mean "rev1..HEAD"
- set x "$1"HEAD
"
+ set x "$1"HEAD
shift
;;
1,*)
shift
;;
1,*)
@@
-197,7
+201,7
@@
process_one () {
;;
esac
;;
esac
- eval "$(sed -ne "$whosepatchScript" $commsg)"
+ eval "$(
LANG=C LC_ALL=C
sed -ne "$whosepatchScript" $commsg)"
test "$author,$au" = ",$me" || {
mailScript="$mailScript"'
a\
test "$author,$au" = ",$me" || {
mailScript="$mailScript"'
a\