]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
Teach fast-import to honor pack.compression and pack.depth
authorShawn O. Pearce <spearce@spearce.org>
Mon, 21 Jan 2008 04:36:54 +0000 (23:36 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Jan 2008 09:04:10 +0000 (01:04 -0800)
commitbb23fdfa6c13b7f9cd5e1dbe0ca2fea31a627c5c
treed47ca4d1298ccde336b27434349aeb89b1209e1c
parentc4a95c9f4b9c7b4dc8b705d323309263aa154e6a
Teach fast-import to honor pack.compression and pack.depth

We now use the configured pack.compression and pack.depth values
within fast-import, as like builtin-pack-objects fast-import is
generating a packfile for consumption by the Git tools.

We use the same behavior as builtin-pack-objects does for these
options, allowing core.compression to supply the default value
for pack.compression.

The default setting for pack.depth within fast-import is still 10
as users will generally repack fast-import generated packfiles by
`repack -f`.  A large delta depth within the fast-import packfile
can significantly slow down such a later repack.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c