diff options
author | Taru Karttunen <taruti@taruti.net> | 2017-11-15 18:33:41 +0200 |
---|---|---|
committer | Jeremy Stribling <strib@alum.mit.edu> | 2017-11-29 11:01:18 -0800 |
commit | fae438980c3e17cb04f84ce92b99cd3c835e3e18 (patch) | |
tree | 49897b1fef2644f332015a7d7f3333c3e6c935e8 /storage/filesystem/object.go | |
parent | 3f0b1ff37b64108cfed1b57ea4ae1f1566592905 (diff) | |
download | go-git-fae438980c3e17cb04f84ce92b99cd3c835e3e18.tar.gz |
Support for repacking objects
Diffstat (limited to 'storage/filesystem/object.go')
-rw-r--r-- | storage/filesystem/object.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/filesystem/object.go b/storage/filesystem/object.go index 9b2790f..f235204 100644 --- a/storage/filesystem/object.go +++ b/storage/filesystem/object.go @@ -503,3 +503,11 @@ func (s *ObjectStorage) LooseObjectTime(hash plumbing.Hash) (time.Time, error) { func (s *ObjectStorage) DeleteLooseObject(hash plumbing.Hash) error { return s.dir.ObjectDelete(hash) } + +func (s *ObjectStorage) ObjectPacks() ([]plumbing.Hash, error) { + return s.dir.ObjectPacks() +} + +func (s *ObjectStorage) DeleteObjectPackAndIndex(h plumbing.Hash) error { + return s.dir.DeleteObjectPackAndIndex(h) +} |