git/refs
Michael Haggerty 099a912a27 read_packed_refs(): do more of the work of reading packed refs
Teach `read_packed_refs()` to also

* Allocate and initialize the new `packed_ref_cache`
* Open and close the `packed-refs` file
* Update the `validity` field of the new object

This decreases the coupling between `packed_refs_cache` and
`files_ref_store` by a little bit.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-05-23 14:29:55 +09:00
..
files-backend.c read_packed_refs(): do more of the work of reading packed refs 2017-05-23 14:29:55 +09:00
iterator.c prefix_ref_iterator: don't trim too much 2017-05-23 14:29:52 +09:00
ref-cache.c refs/files-backend: convert many internals to struct object_id 2017-05-08 15:12:58 +09:00
ref-cache.h read_packed_refs(): do more of the work of reading packed refs 2017-05-23 14:29:55 +09:00
refs-internal.h ref_update_reject_duplicates(): expose function to whole refs module 2017-05-23 14:29:55 +09:00