Code

index_fd(): split into two helper functions
authorJunio C Hamano <gitster@pobox.com>
Sun, 8 May 2011 08:47:34 +0000 (01:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 May 2011 18:58:19 +0000 (11:58 -0700)
commit7b41e1e15b2cce13deaafc0aab10580036346a5a
tree30b38b6591602d70aa3015f94909348a79045387
parentc4ce46fc7ac1b59372aa935e641ca15b12359f5b
index_fd(): split into two helper functions

Split out the case where we do not know the size of the input (hence we
read everything into a strbuf before doing anything) to index_pipe(), and
the other case where we mmap or read the whole data to index_bulk().

Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c