[PATCH] Obtain sha1_file_info() for deltified pack entry properly.
authorJunio C Hamano <junkio@cox.net>
Tue, 28 Jun 2005 06:58:08 +0000 (23:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 28 Jun 2005 15:53:21 +0000 (08:53 -0700)
commit5db47c2bb3b7e77fd32aeef12b6f6de8d14cb43b
tree8d53421b03603af40b3a66f7f533bc0f54f108bb
parent635f67f9437b104be852cadb645006f4e858421f
[PATCH] Obtain sha1_file_info() for deltified pack entry properly.

The initial one was not doing enough to figure things out
without uncompressing too much.  It also fixes a potential
segfault resulting from missing use_packed_git() call.

We would need to introduce unuse_packed_git() call and do proper
use counting to figure out when it is safe to unmap, but
currently we do not unmap packed file yet.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
sha1_file.c