author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Fri, 18 Jul 2008 14:30:32 +0000 (16:30 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 19 Jul 2008 18:17:43 +0000 (11:17 -0700) | ||
commit | 3a176c6cde650f8907b2dbafafb72f6375038613 | |
tree | b1ce068e0396408adb2712bc35a1d2722019ccaa | tree | snapshot |
parent | 6259ac6628477aa5ebde9bd9e8daaeecca2a74ae | commit | diff |
archive: make zip compression level independent from core git
zlib_compression_level is the compression level used for git's object store.
It's 1 by default, which is the fastest setting. This variable is also used
as the default compression level for ZIP archives created by git archive.
For archives, however, zlib's own default of 6 is more appropriate, as it's
favouring small size over speed -- archive creation is not that performance
critical most of the time.
This patch makes git archive independent from git's internal compression
level setting. It affects invocations of git archive without explicitly
specified compression level option, only.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
zlib_compression_level is the compression level used for git's object store.
It's 1 by default, which is the fastest setting. This variable is also used
as the default compression level for ZIP archives created by git archive.
For archives, however, zlib's own default of 6 is more appropriate, as it's
favouring small size over speed -- archive creation is not that performance
critical most of the time.
This patch makes git archive independent from git's internal compression
level setting. It affects invocations of git archive without explicitly
specified compression level option, only.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-zip.c | diff | blob | history | |
archive.h | diff | blob | history | |
builtin-archive.c | diff | blob | history |