Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
format-patch/commit: Quote single quote in the author name properly.
[gitweb.git]
/
git-format-patch.sh
diff --git
a/git-format-patch.sh
b/git-format-patch.sh
index 01508e3b04f91bba3e960eb74eaff3e349e209bd..818059f2429d440396daa313dd7fde98bb4782e0 100755
(executable)
--- a/
git-format-patch.sh
+++ b/
git-format-patch.sh
@@
-173,6
+173,7
@@
titleScript='
whosepatchScript='
/^author /{
+ s/'\''/'\''\\'\'\''/g
s/author \(.*>\) \(.*\)$/au='\''\1'\'' ad='\''\2'\''/p
q
}'
@@
-210,6
+211,8
@@
Date: '"$ad"
}
mailScript="$mailScript"'
+ a\
+
: body
p
n