Skip to content

Commit

Permalink
unpack-objects: read configuration data upon startup.
Browse files Browse the repository at this point in the history
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 <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jul 25, 2006
1 parent ceec136 commit 8e27364
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unpack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8e27364

Please sign in to comment.