1
0
mirror of https://github.com/git/git.git synced 2024-11-18 05:03:56 +01:00
git/refs
Junio C Hamano 9db22910f7 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`
2018-02-15 14:55:42 -08:00
..
files-backend.c
iterator.c
packed-backend.c Merge branch 'kg/packed-ref-cache-fix' 2018-02-15 14:55:42 -08:00
packed-backend.h
ref-cache.c
ref-cache.h
refs-internal.h