• Junio C Hamano's avatar
    zlib: wrap deflate side of the API · 55bb5c91
    Junio C Hamano authored
    Wrap deflateInit, deflate, and deflateEnd for everybody, and the sole use
    of deflateInit2 in remote-curl.c to tell the library to use gzip header
    and trailer in git_deflate_init_gzip().
    There is only one caller that cares about the status from deflateEnd().
    Introduce git_deflate_end_gently() to let that sole caller retrieve the
    status and act on it (i.e. die) for now, but we would probably want to
    make inflate_end/deflate_end die when they ran out of memory and get
    rid of the _gently() kind.
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
zlib.c 2.96 KB