diff options
author | Santiago M. Mola <santi@mola.io> | 2017-06-05 18:09:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-05 18:09:57 +0200 |
commit | 2a00316b65585be2bf68e1ea9c0e42c6af4f5679 (patch) | |
tree | bb6699e79ffd57b9141fe9c78300d69a3715885c /plumbing | |
parent | b25c5ead44698a4a036435c8977581ea34f761dd (diff) | |
parent | 88f88ea4cf5d44065edda8b06c2267a9dccea16e (diff) | |
download | go-git-2a00316b65585be2bf68e1ea9c0e42c6af4f5679.tar.gz |
Merge pull request #409 from smola/dirty-plainopen
storage/filesystem: call initialization explicitly, fixes #408
Diffstat (limited to 'plumbing')
-rw-r--r-- | plumbing/storer/storer.go | 8 |
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 +} |