aboutsummaryrefslogtreecommitdiff
path: root/odb.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-01-15 05:47:47 -0800
committerJunio C Hamano <gitster@pobox.com>2026-01-15 05:47:47 -0800
commitc8e1706e8dbe7a511c1fd85d5147a1722b4080f1 (patch)
treedcab6ef9ff4e3e9359454a6b1c04e7dc59d87317 /odb.h
parent8745eae506f700657882b9e32b2aa00f234a6fb6 (diff)
parent12d3b58b5552750f351ded7166b347446d9543f3 (diff)
downloadgit-c8e1706e8dbe7a511c1fd85d5147a1722b4080f1.tar.xz
Merge branch 'ps/read-object-info-improvements' into ps/odb-for-each-object
* ps/read-object-info-improvements: packfile: drop repository parameter from `packed_object_info()` packfile: skip unpacking object header for disk size requests packfile: disentangle return value of `packed_object_info()` packfile: always populate pack-specific info when reading object info packfile: extend `is_delta` field to allow for "unknown" state packfile: always declare object info to be OI_PACKED object-file: always set OI_LOOSE when reading object info
Diffstat (limited to 'odb.h')
-rw-r--r--odb.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/odb.h b/odb.h
index 014cd9585a..afae5e5c01 100644
--- a/odb.h
+++ b/odb.h
@@ -330,7 +330,6 @@ struct object_info {
OI_CACHED,
OI_LOOSE,
OI_PACKED,
- OI_DBCACHED
} whence;
union {
/*
@@ -344,7 +343,12 @@ struct object_info {
struct {
struct packed_git *pack;
off_t offset;
- unsigned int is_delta;
+ enum packed_object_type {
+ PACKED_OBJECT_TYPE_UNKNOWN,
+ PACKED_OBJECT_TYPE_FULL,
+ PACKED_OBJECT_TYPE_OFS_DELTA,
+ PACKED_OBJECT_TYPE_REF_DELTA,
+ } type;
} packed;
} u;
};