diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-05-22 16:17:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-23 14:29:55 +0900 |
commit | 099a912a279415dd27716ee5de07ff347bfc49da (patch) | |
tree | d5c4bff50ad6faf92850d84076a7c51a3880fc3d /parse-options.c | |
parent | get_packed_ref_cache(): assume "packed-refs" won't change while locked (diff) | |
download | tgif-099a912a279415dd27716ee5de07ff347bfc49da.tar.xz |
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>
Diffstat (limited to 'parse-options.c')
0 files changed, 0 insertions, 0 deletions