Code

builtin-bundle - use buffered reads for bundle header
authorMark Levedahl <mdl123@verizon.net>
Sat, 11 Aug 2007 00:39:24 +0000 (20:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 11 Aug 2007 05:33:44 +0000 (22:33 -0700)
commit21a02980f9025c3a338fb897796542ddef8707d1
treed27f3e72dca0076d0901c4a05ebfbbfb721c00ce
parent442b67a55972e69a054eb1206bbbdf044532130a
builtin-bundle - use buffered reads for bundle header

This eliminates all use of byte-at-a-time reading of data in this
function: as Junio noted, a bundle file is seekable so we can
reset the file position to the first part of the pack-file using lseek
after reading the header.

Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-bundle.c