From: Junio C Hamano Date: Mon, 17 Jul 2006 22:10:10 +0000 (-0700) Subject: unpack-objects: read configuration data upon startup. X-Git-Tag: v1.4.3-rc1~270^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8e27364128b091e76059229d4f009bc7f869fa9f?hp=ceec1361ebbc4613813ba42976503f5e304cfacf unpack-objects: read configuration data upon startup. With this, unpack-objects will write out the loose objects with new-style headers when core.legacyheaders configuration is set to false. One unfortunate thing is that we still need inflate/deflate cycle when unpacking, even for objects in the pack stream that are not deltified, because it is not possible to determine the boundary of objects in the encoded stream cheaply without inflating it first. Signed-off-by: Junio C Hamano --- diff --git a/unpack-objects.c b/unpack-objects.c index 48c1ee7968..b23fe58ce1 100644 --- a/unpack-objects.c +++ b/unpack-objects.c @@ -266,6 +266,7 @@ int main(int argc, char **argv) unsigned char sha1[20]; setup_git_directory(); + git_config(git_default_config); quiet = !isatty(2);