summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-06-10 17:45:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-06-10 17:51:02 (GMT)
commit5e86c1fb866ca4bc8d6e015ccbdafd114fd616fa (patch)
tree1acd628b6280d13d2dfae14d704edc1eb1544aa7 /cache.h
parent9e7e5ca372a0242069ff4e7eccecc7d5fe7ec385 (diff)
downloadgit-5e86c1fb866ca4bc8d6e015ccbdafd114fd616fa.zip
git-5e86c1fb866ca4bc8d6e015ccbdafd114fd616fa.tar.gz
git-5e86c1fb866ca4bc8d6e015ccbdafd114fd616fa.tar.bz2
zlib: wrap inflateInit2 used to accept only for gzip format
http-backend.c uses inflateInit2() to tell the library that it wants to accept only gzip format. Wrap it in a helper function so that readers do not have to wonder what the magic numbers 15 and 16 are for. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index ce73e1f..50f09d0 100644
--- a/cache.h
+++ b/cache.h
@@ -21,6 +21,7 @@
#endif
void git_inflate_init(z_streamp strm);
+void git_inflate_init_gzip_only(z_streamp strm);
void git_inflate_end(z_streamp strm);
int git_inflate(z_streamp strm, int flush);