summaryrefslogtreecommitdiff
path: root/builtin/diff-index.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-04-24 19:31:44 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-04-24 22:10:51 -0700
commit3c78fd808d8ed8848fe09735c7755ddd35cfe83f (patch)
tree27dd8a3e8469e699a29565c4a4d95d2e0bcb6537 /builtin/diff-index.c
parentarchive-zip: use strbuf for ZIP directory (diff)
downloadtgif-3c78fd808d8ed8848fe09735c7755ddd35cfe83f.tar.xz
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>
Diffstat (limited to 'builtin/diff-index.c')
0 files changed, 0 insertions, 0 deletions