]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/pack-objects.c
git-repack --max-pack-size: new file statics and code restructuring
authorDana L. How <danahow@gmail.com>
Sun, 13 May 2007 18:34:56 +0000 (11:34 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 21 May 2007 04:55:26 +0000 (21:55 -0700)
commitd01fb92f8d27cf8f0a843f4e9c0f8f022856b34d
treeb73c41c5426a70e25c27f67035a9810248b12839
parentf02153696fc319c3c6dba2c27a5f7aed98eec465
git-repack --max-pack-size: new file statics and code restructuring

Add "pack_size_limit", the limit specified by --max-pack-size,
"written_list", the list of objects written to the current pack,
and "nr_written", the number of objects in written_list.
Put "base_name" at file scope again and add forward declarations.
Move write_index_file() call from cnd_pack_objects() to
write_pack_file() since only the latter will know how
many times to call write_index_file().

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