aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/storer/storer.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/storer/storer.go')
-rw-r--r--plumbing/storer/storer.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/plumbing/storer/storer.go b/plumbing/storer/storer.go
index 0b96c0e..863070d 100644
--- a/plumbing/storer/storer.go
+++ b/plumbing/storer/storer.go
@@ -5,3 +5,11 @@ type Storer interface {
EncodedObjectStorer
ReferenceStorer
}
+
+// Initializer should be implemented by storers that require to perform any
+// operation when creating a new repository (i.e. git init).
+type Initializer interface{
+ // Init performs initialization of the storer and returns the error, if
+ // any.
+ Init() error
+}