]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
Implemented automatic checkpoints within fast-import.
authorShawn O. Pearce <spearce@spearce.org>
Mon, 15 Jan 2007 13:00:49 +0000 (08:00 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 15 Jan 2007 13:00:49 +0000 (08:00 -0500)
commitd9ee53ce45b0f1c26285417b900b3c5735721f7e
treefabba64d27ab1c18d96fd6c973a2e5e1c9167b43
parent2fce1f3c862845d23b2bd8305f97abb115623192
Implemented automatic checkpoints within fast-import.

When the number of objects or number of bytes gets close to the limit
allowed by the packfile format (or configured on the command line by
our caller) we should automatically checkpoint the current packfile
and start a new one before writing the object out.  This does however
require that we abandon the delta (if we had one) as its not valid
in a new packfile.

I also added the simple rule that if we got a delta back but the
delta itself is the same size as or larger than the uncompressed
object to ignore the delta and just store the object data.  This
should avoid some really bad behavior caused by our current delta
strategy.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c