author | Nicolas Pitre <nico@fluxnic.net> | |
Wed, 17 Feb 2010 19:05:52 +0000 (14:05 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Feb 2010 19:08:42 +0000 (11:08 -0800) | ||
commit | 212818160d588fae403dfc823250e95ffbac76e5 | |
tree | 910f2aad163883ac67a216c02262ae4a1574af05 | tree | snapshot |
parent | 3fc366bdbbcafa36ac4e35e3124959beb94c7fce | commit | diff |
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>
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 | diff | blob | history |