format-patch/commit: Quote single quote in the author name properly.

Noticed by Kyle McMartin.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2006-01-05 19:50:37 -08:00
parent 81214e4ddf
commit aa66c7ec77
2 changed files with 2 additions and 0 deletions

View file

@ -165,6 +165,7 @@ then
then
pick_author_script='
/^author /{
s/'\''/'\''\\'\'\''/g
h
s/^author \([^<]*\) <[^>]*> .*$/\1/
s/'\''/'\''\'\'\''/g

View file

@ -173,6 +173,7 @@ titleScript='
whosepatchScript='
/^author /{
s/'\''/'\''\\'\'\''/g
s/author \(.*>\) \(.*\)$/au='\''\1'\'' ad='\''\2'\''/p
q
}'