Code

git-repack --max-pack-size: write_{object,one}() respect pack limit
authorDana L. How <danahow@gmail.com>
Sun, 13 May 2007 19:06:18 +0000 (12:06 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 21 May 2007 04:55:26 +0000 (21:55 -0700)
commit17b08f2cd0000d42bb9f0a36354ab9300d64d420
tree470437c6000785bcbf661ff95683d0ca25d88d67
parentd01fb92f8d27cf8f0a843f4e9c0f8f022856b34d
git-repack --max-pack-size: write_{object,one}() respect pack limit

With --max-pack-size,  generate the appropriate write limit
for each object and check against it before each group of writes.
Update delta usability rules to handle base being in a previously-
written pack.  Inline sha1write_compress() so we know the
exact size of the written data when it needs to be compressed.
Detect and return write "failure".

Signed-off-by: Dana L. How <danahow@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-objects.c