summaryrefslogtreecommitdiff
path: root/blob.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2012-11-25 11:08:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-11-29 21:43:04 (GMT)
commit3c64063558d57735384d3c547c0138aca7dfd3b8 (patch)
tree5c0aca85ed604ca5f8a3bed7d4c44e79f22844e0 /blob.c
parentf035ab620520dbf286d3303194f10a489d7c7f56 (diff)
downloadgit-3c64063558d57735384d3c547c0138aca7dfd3b8.zip
git-3c64063558d57735384d3c547c0138aca7dfd3b8.tar.gz
git-3c64063558d57735384d3c547c0138aca7dfd3b8.tar.bz2
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 'blob.c')
0 files changed, 0 insertions, 0 deletions