@matheusbsbs / matheus-bagliano / commits / aa66c7ec77
Fork 0

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

Noticed by Kyle McMartin. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Jan 5, 2006 at 19:50 UTC aa66c7ec77d474b737da607d6cb2d07f56628def
2 files changed +2
git-commit.sh
+1
@@ -165,6 +165,7 @@ then
165 then
166 pick_author_script='
167 /^author /{
168 + s/'\''/'\''\\'\'\''/g
169 h
170 s/^author \([^<]*\) <[^>]*> .*$/\1/
171 s/'\''/'\''\'\'\''/g
git-format-patch.sh
+1
@@ -173,6 +173,7 @@ titleScript='
173
174 whosepatchScript='
175 /^author /{
176 + s/'\''/'\''\\'\'\''/g
177 s/author \(.*>\) \(.*\)$/au='\''\1'\'' ad='\''\2'\''/p
178 q
179 }'