summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-13 13:20:43 -0700
committerJunio C Hamano <gitster@pobox.com>2011-05-20 18:38:50 -0700
commit5266d369b21f8c260fa60d94fb29c3998c521e4a (patch)
tree62e71bbd0ebdeae16f6ea2e7bdc0214db5e46aad /cache.h
parent9a4905902230c080f0f6a64ed7f0aaa5777d2f5b (diff)
downloadgit-5266d369b21f8c260fa60d94fb29c3998c521e4a.tar.gz
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>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 9fbc07e976..3a1af9d958 100644
--- a/cache.h
+++ b/cache.h
@@ -1030,7 +1030,8 @@ struct object_info {
enum {
OI_CACHED,
OI_LOOSE,
- OI_PACKED
+ OI_PACKED,
+ OI_DBCACHED
} whence;
union {
/*