aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/reference.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-02-13 17:04:30 +0100
committerSantiago M. Mola <santi@mola.io>2017-02-16 18:15:20 +0100
commit53385d62c573e0e2ef67587099cce0144cf60b3c (patch)
tree7e4315a2a18a46cf691c19d5ae2e96eb84e96c18 /storage/filesystem/reference.go
parentf5a9c7ed5ab58afa255c2f405b30f06f88a6aecf (diff)
downloadgo-git-53385d62c573e0e2ef67587099cce0144cf60b3c.tar.gz
plumbing/storer: add RemoveReference
Diffstat (limited to 'storage/filesystem/reference.go')
-rw-r--r--storage/filesystem/reference.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/filesystem/reference.go b/storage/filesystem/reference.go
index ee87830..cff00c9 100644
--- a/storage/filesystem/reference.go
+++ b/storage/filesystem/reference.go
@@ -26,3 +26,7 @@ func (r *ReferenceStorage) IterReferences() (storer.ReferenceIter, error) {
return storer.NewReferenceSliceIter(refs), nil
}
+
+func (r *ReferenceStorage) RemoveReference(n plumbing.ReferenceName) error {
+ return r.dir.RemoveRef(n)
+}