index-pack: use hash_sha1_file()
commitce9fbf16e0000ecca92870a90e4b30afcb3917b7
authorNicolas Pitre <nico@cam.org>
Tue, 20 Mar 2007 20:02:09 +0000 (20 16:02 -0400)
committerJunio C Hamano <junkio@cox.net>
Wed, 21 Mar 2007 05:09:57 +0000 (20 22:09 -0700)
treeabad04ae3251030ae598bfb090a978d241b0e659
parent8685da42561d16bb01aeaa1a2392459965187925
index-pack: use hash_sha1_file()

Use hash_sha1_file() instead of duplicating code to compute object SHA1.
While at it make it accept a const pointer.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h
index-pack.c
sha1_file.c