git-commit-vandalism/refs
Michael Haggerty 7c22bc8a18 ref-cache: introduce a new type, ref_cache
For now, it just wraps a `ref_entry *` that points at the root of the
tree. Soon it will hold more information.

Add two new functions, `create_ref_cache()` and `free_ref_cache()`.
Make `free_ref_entry()` private.

Change files-backend to use this type to hold its caches.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-04-16 21:32:46 -07:00
..
files-backend.c ref-cache: introduce a new type, ref_cache 2017-04-16 21:32:46 -07:00
iterator.c do_for_each_ref(): reimplement using reference iteration 2016-06-20 11:38:20 -07:00
ref-cache.c ref-cache: introduce a new type, ref_cache 2017-04-16 21:32:46 -07:00
ref-cache.h ref-cache: introduce a new type, ref_cache 2017-04-16 21:32:46 -07:00
refs-internal.h refs_verify_refname_available(): implement once for all backends 2017-04-16 21:32:45 -07:00