From: Junio C Hamano Date: Thu, 15 Feb 2018 22:55:42 +0000 (-0800) Subject: Merge branch 'kg/packed-ref-cache-fix' X-Git-Tag: v2.17.0-rc0~98 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9db22910f74b64764d4fb4e17f8aef4eb5aa6af0 Merge branch 'kg/packed-ref-cache-fix' Avoid mmapping small files while using packed refs (especially ones with zero size, which would cause later munmap() to fail). * kg/packed-ref-cache-fix: packed_ref_cache: don't use mmap() for small files load_contents(): don't try to mmap an empty file packed_ref_iterator_begin(): make optimization more general find_reference_location(): make function safe for empty snapshots create_snapshot(): use `xmemdupz()` rather than a strbuf struct snapshot: store `start` rather than `header_len` --- 9db22910f74b64764d4fb4e17f8aef4eb5aa6af0