fast-import: use sha1write() for pack data
commit212818160d588fae403dfc823250e95ffbac76e5
authorNicolas Pitre <nico@fluxnic.net>
Wed, 17 Feb 2010 19:05:52 +0000 (17 14:05 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2010 19:08:42 +0000 (17 11:08 -0800)
tree910f2aad163883ac67a216c02262ae4a1574af05
parent3fc366bdbbcafa36ac4e35e3124959beb94c7fce
fast-import: use sha1write() for pack data

This is in preparation for using write_idx_file().  Also, by using
sha1write() we get some buffering to reduces the number of write
syscalls, and the written data is SHA1 summed which allows for the extra
data integrity validation check performed in fixup_pack_header_footer()
(details on this in commit abeb40e5aa).

Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c