author | Junio C Hamano <gitster@pobox.com> | |
Fri, 10 Jun 2011 17:55:10 +0000 (10:55 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 10 Jun 2011 18:10:29 +0000 (11:10 -0700) | ||
commit | 55bb5c9147a209eba44c3e9866704ece424c3d31 | |
tree | 1b3561115345d0b236085d741da75390cb1e759b | tree | snapshot |
parent | 5e86c1fb866ca4bc8d6e015ccbdafd114fd616fa | commit | diff |
zlib: wrap deflate side of the API
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: Junio C Hamano <gitster@pobox.com>
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: Junio C Hamano <gitster@pobox.com>
archive-zip.c | diff | blob | history | |
builtin/index-pack.c | diff | blob | history | |
builtin/pack-objects.c | diff | blob | history | |
cache.h | diff | blob | history | |
diff.c | diff | blob | history | |
fast-import.c | diff | blob | history | |
http-push.c | diff | blob | history | |
remote-curl.c | diff | blob | history | |
sha1_file.c | diff | blob | history | |
zlib.c | diff | blob | history |