]> granicus.if.org Git - git/commit
archive-zip: write ZIP dir entry directly to strbuf
authorRené Scharfe <l.s.r@web.de>
Mon, 24 Apr 2017 17:31:44 +0000 (19:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Apr 2017 05:10:51 +0000 (22:10 -0700)
commit3c78fd808d8ed8848fe09735c7755ddd35cfe83f
tree27dd8a3e8469e699a29565c4a4d95d2e0bcb6537
parentc061a149709195e0ec914a5d6ba173042e4197f9
archive-zip: write ZIP dir entry directly to strbuf

Write all fields of the ZIP directory record for an archive entry
in the right order directly into the strbuf instead of taking a detour
through a struct.  Do that at end, when we have all necessary data like
checksum and compressed size.  The fields are documented just as well,
the code becomes shorter and we save an extra copy.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-zip.c