diff options
author | Jeff King <peff@peff.net> | 2016-02-22 17:45:08 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-22 14:51:09 -0800 |
commit | b1ddfb9151ca817c30825d1250d565b32c5fc0f5 (patch) | |
tree | 6c8ecb64c040b7634c7ede152ede8054c5e4cbd7 /ewah | |
parent | transport_anonymize_url: use xstrfmt (diff) | |
download | tgif-b1ddfb9151ca817c30825d1250d565b32c5fc0f5.tar.xz |
diff_populate_gitlink: use a strbuf
We allocate 100 bytes to hold the "Submodule commit ..."
text. This is enough, but it's not immediately obvious that
this is the case, and we have to repeat the magic 100 twice.
We could get away with xstrfmt here, but we want to know the
size, as well, so let's use a real strbuf. And while we're
here, we can clean up the logic around size_only. It
currently sets and clears the "data" field pointlessly, and
leaves the "should_free" flag on even after we have cleared
the data.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah')
0 files changed, 0 insertions, 0 deletions