From: Pierre Habouzit Date: Sat, 15 Sep 2007 21:50:12 +0000 (+0200) Subject: Refactor replace_encoding_header. X-Git-Tag: v1.5.4-rc0~295^2~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a08f23ab3eab67aac7163a284038f45fa99ef66f?hp=a08f23ab3eab67aac7163a284038f45fa99ef66f Refactor replace_encoding_header. * Be more clever in how we search for "encoding ...\n": parse for real instead of the sloppy strstr's. * use strbuf_splice to do the substring replacements. Signed-off-by: Pierre Habouzit Acked-by: Linus Torvalds Signed-off-by: Junio C Hamano ---