diff options
author | René Scharfe <l.s.r@web.de> | 2017-04-24 19:30:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-24 22:10:43 -0700 |
commit | c061a149709195e0ec914a5d6ba173042e4197f9 (patch) | |
tree | 538ca1fac2ab7c397bac63fc6cce50cd7bd1332d /builtin/write-tree.c | |
parent | archive-zip: add tests for big ZIP archives (diff) | |
download | tgif-c061a149709195e0ec914a5d6ba173042e4197f9.tar.xz |
archive-zip: use strbuf for ZIP directory
Keep the ZIP central directory, which is written after all archive
entries, in a strbuf instead of a custom-managed buffer. It contains
binary data, so we can't (and don't want to) use the full range of
strbuf functions and we don't need the terminating NUL, but the result
is shorter and simpler code.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/write-tree.c')
0 files changed, 0 insertions, 0 deletions