]> git.ipfire.org Git - thirdparty/git.git/commit - sha1-name.c
object-store: factor out odb_loose_cache()
authorRené Scharfe <l.s.r@web.de>
Sun, 6 Jan 2019 16:45:30 +0000 (17:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
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 <peff@peff.net>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-store.h
sha1-file.c
sha1-name.c