aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/storer/storer.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-06-05 18:09:57 +0200
committerGitHub <noreply@github.com>2017-06-05 18:09:57 +0200
commit2a00316b65585be2bf68e1ea9c0e42c6af4f5679 (patch)
treebb6699e79ffd57b9141fe9c78300d69a3715885c /plumbing/storer/storer.go
parentb25c5ead44698a4a036435c8977581ea34f761dd (diff)
parent88f88ea4cf5d44065edda8b06c2267a9dccea16e (diff)
downloadgo-git-2a00316b65585be2bf68e1ea9c0e42c6af4f5679.tar.gz
Merge pull request #409 from smola/dirty-plainopen
storage/filesystem: call initialization explicitly, fixes #408
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
+}