summaryrefslogtreecommitdiff
path: root/notes-cache.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2012-11-25 12:08:40 +0100
committerJunio C Hamano <gitster@pobox.com>2012-11-29 13:43:04 -0800
commit3c64063558d57735384d3c547c0138aca7dfd3b8 (patch)
tree5c0aca85ed604ca5f8a3bed7d4c44e79f22844e0 /notes-cache.h
parentf035ab620520dbf286d3303194f10a489d7c7f56 (diff)
downloadgit-3c64063558d57735384d3c547c0138aca7dfd3b8.tar.gz
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 'notes-cache.h')
0 files changed, 0 insertions, 0 deletions