Skip to content
  • Junio C Hamano's avatar
    compression: unify pack.compression configuration parsing · 8de7eeb5
    Junio C Hamano authored
    
    
    There are three codepaths that use a variable whose name is
    pack_compression_level to affect how objects and deltas sent to a
    packfile is compressed.  Unlike zlib_compression_level that controls
    the loose object compression, however, this variable was static to
    each of these codepaths.  Two of them read the pack.compression
    configuration variable, using core.compression as the default, and
    one of them also allowed overriding it from the command line.
    
    The other codepath in bulk-checkin did not pay any attention to the
    configuration.
    
    Unify the configuration parsing to git_default_config(), where we
    implement the parsing of core.loosecompression and core.compression
    and make the former override the latter, by moving code to parse
    pack.compression and also allow core.compression to give default to
    this variable.
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    8de7eeb5