]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/index-pack.c
index-pack: Refactor base arguments of resolve_delta into a struct
authorShawn O. Pearce <spearce@spearce.org>
Mon, 14 Jul 2008 02:07:44 +0000 (22:07 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jul 2008 13:27:09 +0000 (06:27 -0700)
commitf41aebd46998c8b6df3733196d55aeb7162b3df6
tree922a40c6da6bfb2c102ceb2b051e949181d8da65
parent191a8e32b38c7ff0dd884df7bd323b7a5bd4336c
index-pack: Refactor base arguments of resolve_delta into a struct

We need to discard base objects which are not recently used if our
memory gets low, such as when we are unpacking a long delta chain
of a very large object.

To support tracking the available base objects we combine the
pointer and size into a struct.  Future changes would allow the
data pointer to be free'd and marked NULL if memory gets low.

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