sha1_file.c: expose map_sha1_file() interface.
authorJunio C Hamano <junkio@cox.net>
Mon, 17 Jul 2006 22:04:47 +0000 (15:04 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 25 Jul 2006 21:15:48 +0000 (14:15 -0700)
commitbb6b8e4f877e8b59b3756960e29d1955072dab56
treeec8e3f2c7a91fd3b456ae046b92dbc5f5c1ac28a
parent96256bba949f43548a0be0af877680eb62b156f6
sha1_file.c: expose map_sha1_file() interface.

This exposes map_sha1_file() interface to mmap a loose object file,
and legacy_loose_object() function, split from unpack_sha1_header().

They will be used in the next patch to reuse the deflated data from
new-style loose object files when generating packs.

Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h
sha1_file.c