object-store: factor out odb_loose_cache()
authorRené Scharfe <redacted>
Sun, 6 Jan 2019 16:45:30 +0000 (17:45 +0100)
committerJunio C Hamano <redacted>
Tue, 8 Jan 2019 17:40:19 +0000 (09:40 -0800)
commit0000d6543f1c2ceea017161a2807167cdfbf8c0b
tree5b6a69a5dedba99739ecee0c2f9c617ab4cac157
parentecbdaf0899161c067986e9d9d564586d4b045d62
object-store: factor out odb_loose_cache()

Add and use a function for loading the entries of a loose object
subdirectory for a given object ID.  It frees callers from deriving the
fanout key; they can use the returned oid_array reference for lookups or
forward range scans.

Suggested-by: Jeff King <redacted>
Signed-off-by: Rene Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
object-store.h
sha1-file.c
sha1-name.c
git clone https://git.99rst.org/PROJECT