diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2012-11-25 12:08:40 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-11-29 13:43:04 -0800 |
commit | 3c64063558d57735384d3c547c0138aca7dfd3b8 (patch) | |
tree | 5c0aca85ed604ca5f8a3bed7d4c44e79f22844e0 /builtin/rm.c | |
parent | imap-send: change msg_data from storing (ptr, len) to storing strbuf (diff) | |
download | tgif-3c64063558d57735384d3c547c0138aca7dfd3b8.tar.xz |
wrap_in_html(): use strbuf_addstr_xml_quoted()
Use the new function to quote characters as they are being added to
buf, rather than quoting them in *p and then copying them into buf.
This increases code sharing, and changes the algorithm from O(N^2) to
O(N) in the number of characters in a line.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rm.c')
0 files changed, 0 insertions, 0 deletions