diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-01-12 10:00:45 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-12 06:51:14 -0800 |
| commit | 8908c303da91400e8d9643da6fc697a081ac7374 (patch) | |
| tree | 8872bb186a4827fa523f93c210349b86bafaa132 /contrib/persistent-https | |
| parent | packfile: always populate pack-specific info when reading object info (diff) | |
| download | git-8908c303da91400e8d9643da6fc697a081ac7374.tar.gz git-8908c303da91400e8d9643da6fc697a081ac7374.zip | |
packfile: disentangle return value of `packed_object_info()`
The `packed_object_info()` function returns the type of the packed
object. While we use an `enum object_type` to store the return value,
this type is not to be confused with the actual object type. It _may_
contain the object type, but it may just as well encode that the given
packed object is stored as a delta.
We have removed the only caller that relied on this returned object type
in the preceding commit, so let's simplify semantics and return either 0
on success or a negative error code otherwise.
This unblocks a small optimization where we can skip reading the object
type altogether.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
