author | Mark Levedahl <mdl123@verizon.net> | |
Sat, 11 Aug 2007 00:39:24 +0000 (20:39 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 11 Aug 2007 05:33:44 +0000 (22:33 -0700) | ||
commit | 21a02980f9025c3a338fb897796542ddef8707d1 | |
tree | d27f3e72dca0076d0901c4a05ebfbbfb721c00ce | tree | snapshot |
parent | 442b67a55972e69a054eb1206bbbdf044532130a | commit | diff |
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>
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 | diff | blob | history |