diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-06-17 08:07:34 -0700 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-05-26 13:01:03 -0500 |
commit | b88f1713d01e5cca5a296d564ae094dd8bc6a1f2 (patch) | |
tree | 49dd3e66e51f5dcba0ad00ae726c63a95462ee64 /src/pack-objects.c | |
parent | 1cd6599142ec89f9c7eeb8b302e8877c71e1ab4b (diff) | |
download | libgit2-b88f1713d01e5cca5a296d564ae094dd8bc6a1f2.tar.gz |
zstream: offer inflating, `git_zstream_inflatebuf`
Introduce `git_zstream_inflatebuf` for simple uses.
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r-- | src/pack-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c index 6f86deb07..ec15970f3 100644 --- a/src/pack-objects.c +++ b/src/pack-objects.c @@ -144,7 +144,7 @@ int git_packbuilder_new(git_packbuilder **out, git_repository *repo) pb->nr_threads = 1; /* do not spawn any thread by default */ if (git_hash_ctx_init(&pb->ctx) < 0 || - git_zstream_init(&pb->zstream) < 0 || + git_zstream_init(&pb->zstream, GIT_ZSTREAM_DEFLATE) < 0 || git_repository_odb(&pb->odb, repo) < 0 || packbuilder_config(pb) < 0) goto on_error; |