diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-01-15 05:47:47 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-15 05:47:47 -0800 |
| commit | c8e1706e8dbe7a511c1fd85d5147a1722b4080f1 (patch) | |
| tree | dcab6ef9ff4e3e9359454a6b1c04e7dc59d87317 /packfile.h | |
| parent | 8745eae506f700657882b9e32b2aa00f234a6fb6 (diff) | |
| parent | 12d3b58b5552750f351ded7166b347446d9543f3 (diff) | |
| download | git-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 'packfile.h')
| -rw-r--r-- | packfile.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packfile.h b/packfile.h index 59d162a3f4..33fed26362 100644 --- a/packfile.h +++ b/packfile.h @@ -378,8 +378,11 @@ void release_pack_memory(size_t); /* global flag to enable extra checks when accessing packed objects */ extern int do_check_packed_object_crc; -int packed_object_info(struct repository *r, - struct packed_git *pack, +/* + * Look up the object info for a specific offset in the packfile. + * Returns zero on success, a negative error code otherwise. + */ +int packed_object_info(struct packed_git *pack, off_t offset, struct object_info *); void mark_bad_packed_object(struct packed_git *, const struct object_id *); |
