diff options
| author | 2025-11-16 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-16 00:00:00 +0000 | |
| commit | 5c15542025c98f89d65331ff01b28daa389cf2a6 (patch) | |
| tree | 18a4cf7eb79ef81d63b9c658dc42b21e69e1282e /pack_pack.go | |
| parent | repo is thread safe (diff) | |
| signature | ||
Fix some docs and API types
Diffstat (limited to 'pack_pack.go')
| -rw-r--r-- | pack_pack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pack_pack.go b/pack_pack.go index 15eedf60..5c2c8628 100644 --- a/pack_pack.go +++ b/pack_pack.go @@ -25,7 +25,7 @@ type packlocation struct { Offset uint64 } -func (repo *Repository) packRead(id Hash) (Object, error) { +func (repo *Repository) packRead(id Hash) (StoredObject, error) { loc, err := repo.packIndexFind(id) if err != nil { return nil, err @@ -64,7 +64,7 @@ func (repo *Repository) packIndexFind(id Hash) (packlocation, error) { return packlocation{}, ErrNotFound } -func (repo *Repository) packReadAt(loc packlocation, want Hash) (Object, error) { +func (repo *Repository) packReadAt(loc packlocation, want Hash) (StoredObject, error) { ty, body, err := repo.packBodyResolveAtLocation(loc) if err != nil { return nil, err |
