OSDN Git Service

read_packed_refs(): use mmap to read the `packed-refs` file
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 13 Sep 2017 17:15:59 +0000 (19:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Sep 2017 06:19:07 +0000 (15:19 +0900)
commit49a03ef46667ad5074f1e602e392b7763c686205
treeb05a0802f00801f5eac58b4238aed3d56d91a7e6
parent735267aa100e5e75e5b8c74d47f412ad50851ec9
read_packed_refs(): use mmap to read the `packed-refs` file

It's still done in a pretty stupid way, involving more data copying
than necessary. That will improve in future commits.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/packed-backend.c