author | Junio C Hamano <gitster@pobox.com> | |
Sun, 8 May 2011 08:47:34 +0000 (01:47 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 May 2011 18:58:19 +0000 (11:58 -0700) | ||
commit | 7b41e1e15b2cce13deaafc0aab10580036346a5a | |
tree | 30b38b6591602d70aa3015f94909348a79045387 | tree | snapshot |
parent | c4ce46fc7ac1b59372aa935e641ca15b12359f5b | commit | diff |
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>
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 | diff | blob | history |