aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/storer/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/storer/object.go')
-rw-r--r--plumbing/storer/object.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plumbing/storer/object.go b/plumbing/storer/object.go
index bd34be8..29e0090 100644
--- a/plumbing/storer/object.go
+++ b/plumbing/storer/object.go
@@ -52,6 +52,11 @@ type EncodedObjectStorer interface {
LooseObjectTime(plumbing.Hash) (time.Time, error)
// DeleteLooseObject deletes a loose object if it exists.
DeleteLooseObject(plumbing.Hash) error
+ // ObjectPacks returns hashes of object packs if the underlying
+ // implementation has pack files.
+ ObjectPacks() ([]plumbing.Hash, error)
+ // DeleteObjectPackAndIndex deletes an object pack and the corresponding index file if they exist.
+ DeleteObjectPackAndIndex(plumbing.Hash) error
}
// DeltaObjectStorer is an EncodedObjectStorer that can return delta