author | Nicolas Pitre <nico@cam.org> | |
Fri, 20 Oct 2006 18:45:21 +0000 (14:45 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 20 Oct 2006 23:51:46 +0000 (16:51 -0700) | ||
commit | 2d477051ef260aad352d63fc7d9c07e4ebb4359b | |
tree | 75704920a44a6d286209fce9a132884850928358 | tree | snapshot |
parent | 3c552873c698117689af4e5159c7e491fe3a89a3 | commit | diff |
add the capability for index-pack to read from a stream
This patch only adds the streaming capability to index-pack. Although
the code is different it has the exact same functionality as before to
make sure nothing broke.
This is in preparation for receiving packs over the net, parse them on
the fly, fix them up if they are "thin" packs, and keep the resulting
pack instead of exploding it into loose objects. But such functionality
should come separately.
One immediate advantage of this patch is that index-pack can now deal
with packs up to 4GB in size even on 32-bit architectures since the pack
is not entirely mmap()'d all at once anymore.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This patch only adds the streaming capability to index-pack. Although
the code is different it has the exact same functionality as before to
make sure nothing broke.
This is in preparation for receiving packs over the net, parse them on
the fly, fix them up if they are "thin" packs, and keep the resulting
pack instead of exploding it into loose objects. But such functionality
should come separately.
One immediate advantage of this patch is that index-pack can now deal
with packs up to 4GB in size even on 32-bit architectures since the pack
is not entirely mmap()'d all at once anymore.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
index-pack.c | diff | blob | history |