unpack-objects: read configuration data upon startup.
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 <dc50d1021234060e53ec42a77d526afa2fe07479@cox.net>

destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git