aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/storer/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/storer/index.go')
-rw-r--r--plumbing/storer/index.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/plumbing/storer/index.go b/plumbing/storer/index.go
new file mode 100644
index 0000000..e087296
--- /dev/null
+++ b/plumbing/storer/index.go
@@ -0,0 +1,9 @@
+package storer
+
+import "gopkg.in/src-d/go-git.v4/plumbing/format/index"
+
+// IndexStorer generic storage of index.Index
+type IndexStorer interface {
+ SetIndex(*index.Index) error
+ Index() (*index.Index, error)
+}