sha1_object_info_extended(): hint about objects in delta-base cache

An object found in the delta-base cache is not guaranteed to
stay there, but we know it came from a pack and it is likely
to give us a quick access if we read_sha1_file() it right now,
which is a piece of useful information.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2011-05-13 13:20:43 -07:00
parent 9a49059022
commit 5266d369b2
2 changed files with 11 additions and 1 deletions

View File

@ -1030,7 +1030,8 @@ struct object_info {
enum {
OI_CACHED,
OI_LOOSE,
OI_PACKED
OI_PACKED,
OI_DBCACHED
} whence;
union {
/*