/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make zlib compression level configurable, and change default.
[git/git.git]
/
csum-file.c
diff --git
a/csum-file.c
b/csum-file.c
index
ebaad03
..
6a7b40f
100644
(file)
--- a/
csum-file.c
+++ b/
csum-file.c
@@
-122,7
+122,7
@@
int sha1write_compressed(struct sha1file *f, void *in, unsigned int size)
void *out;
memset(&stream, 0, sizeof(stream));
- deflateInit(&stream,
Z_DEFAULT_COMPRESSION
);
+ deflateInit(&stream,
zlib_compression_level
);
maxsize = deflateBound(&stream, size);
out = xmalloc(maxsize);