diff options
Diffstat (limited to 'storage/memory')
-rw-r--r-- | storage/memory/storage.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/memory/storage.go b/storage/memory/storage.go index 927ec41..3d4e84a 100644 --- a/storage/memory/storage.go +++ b/storage/memory/storage.go @@ -236,6 +236,14 @@ func (r ReferenceStorage) IterReferences() (storer.ReferenceIter, error) { return storer.NewReferenceSliceIter(refs), nil } +func (r ReferenceStorage) CountLooseRefs() (int, error) { + return len(r), nil +} + +func (r ReferenceStorage) PackRefs() error { + return nil +} + func (r ReferenceStorage) RemoveReference(n plumbing.ReferenceName) error { delete(r, n) return nil |