diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-02-15 22:55:42 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-15 22:55:42 (GMT) |
commit | 9db22910f74b64764d4fb4e17f8aef4eb5aa6af0 (patch) | |
tree | 698335a510c04c2e4b0b94d8b2ac8a33a89b671f /Documentation | |
parent | 52b7ab31d08d3e29870f7085c64de936e109f05d (diff) | |
parent | ba41a8b600871b68680ff33de08012f4887133a2 (diff) | |
download | git-9db22910f74b64764d4fb4e17f8aef4eb5aa6af0.zip git-9db22910f74b64764d4fb4e17f8aef4eb5aa6af0.tar.gz git-9db22910f74b64764d4fb4e17f8aef4eb5aa6af0.tar.bz2 |
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`
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions