From 53385d62c573e0e2ef67587099cce0144cf60b3c Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Mon, 13 Feb 2017 17:04:30 +0100 Subject: plumbing/storer: add RemoveReference --- storage/memory/storage.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'storage/memory') diff --git a/storage/memory/storage.go b/storage/memory/storage.go index 6cec47b..9b55b1f 100644 --- a/storage/memory/storage.go +++ b/storage/memory/storage.go @@ -217,6 +217,11 @@ func (r ReferenceStorage) IterReferences() (storer.ReferenceIter, error) { return storer.NewReferenceSliceIter(refs), nil } +func (r ReferenceStorage) RemoveReference(n plumbing.ReferenceName) error { + delete(r, n) + return nil +} + type ShallowStorage []plumbing.Hash func (s *ShallowStorage) SetShallow(commits []plumbing.Hash) error { -- cgit