aboutsummaryrefslogtreecommitdiff
path: root/pack_pack.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit5c15542025c98f89d65331ff01b28daa389cf2a6 (patch)
tree18a4cf7eb79ef81d63b9c658dc42b21e69e1282e /pack_pack.go
parentrepo is thread safe (diff)
signature
Fix some docs and API types
Diffstat (limited to 'pack_pack.go')
-rw-r--r--pack_pack.go4
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