diff options
author | Miguel Molina <miguel@erizocosmi.co> | 2018-07-27 15:36:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-27 15:36:04 +0200 |
commit | 0ade8fb60e759da42f8779b2a5c8a3f422ce4d69 (patch) | |
tree | 85d416c7ab1393be6a00ca8b3851e3ff8dc3e67e /storage/filesystem | |
parent | b7131019e6b2639f69623029a5a1f178bc920a4e (diff) | |
parent | ccd0fa0bc17f0680038529b00f5c5a44f8e77b41 (diff) | |
download | go-git-0ade8fb60e759da42f8779b2a5c8a3f422ce4d69.tar.gz |
Merge pull request #899 from erizocosmico/feature/new-packfile
plumbing: packfile, new Packfile representation
Diffstat (limited to 'storage/filesystem')
-rw-r--r-- | storage/filesystem/storage.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/storage/filesystem/storage.go b/storage/filesystem/storage.go index 622bb4a..6af906d 100644 --- a/storage/filesystem/storage.go +++ b/storage/filesystem/storage.go @@ -2,6 +2,9 @@ package filesystem import ( + "fmt" + + "gopkg.in/src-d/go-git.v4/plumbing/format/index" "gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit" "gopkg.in/src-d/go-billy.v4" @@ -51,3 +54,15 @@ func (s *Storage) Filesystem() billy.Filesystem { func (s *Storage) Init() error { return s.dir.Initialize() } + +type IndexStorage struct { + dir *dotgit.DotGit +} + +func (IndexStorage) SetIndex(*index.Index) error { + return fmt.Errorf("not implemented") +} + +func (IndexStorage) Index() (*index.Index, error) { + return nil, fmt.Errorf("not implemented") +} |