summaryrefslogtreecommitdiff
path: root/builtin/rm.c
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2012-11-25 12:08:40 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-11-29 13:43:04 -0800
commit3c64063558d57735384d3c547c0138aca7dfd3b8 (patch)
tree5c0aca85ed604ca5f8a3bed7d4c44e79f22844e0 /builtin/rm.c
parentimap-send: change msg_data from storing (ptr, len) to storing strbuf (diff)
downloadtgif-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