diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-04-16 08:41:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-16 21:32:46 -0700 |
commit | df30875987329bb46e54ec7be0eb29c33702de3a (patch) | |
tree | 6c2f92e2dbadf9554198da881f9ac002210d4565 /Documentation/git-apply.txt | |
parent | refs: record the ref_store in ref_cache, not ref_dir (diff) | |
download | tgif-df30875987329bb46e54ec7be0eb29c33702de3a.tar.xz |
ref-cache: use a callback function to fill the cache
It is a leveling violation for `ref_cache` to know about
`files_ref_store` or that it should call `read_loose_refs()` to lazily
fill cache directories. So instead, have its constructor take as an
argument a callback function that it should use for lazy-filling, and
change `files_ref_store` to supply a pointer to function
`read_loose_refs` (renamed to `loose_fill_ref_dir`) when creating the
ref cache for its loose refs.
This means that we can generify the type of the back-pointer in
`struct ref_cache` from `files_ref_store` to `ref_store`.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-apply.txt')
0 files changed, 0 insertions, 0 deletions