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 /pretty.c | |
parent | f035ab620520dbf286d3303194f10a489d7c7f56 (diff) | |
download | git-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 'pretty.c')
0 files changed, 0 insertions, 0 deletions