aboutsummaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorMiguel Molina <miguel@erizocosmi.co>2018-07-20 15:51:15 +0200
committerMiguel Molina <miguel@erizocosmi.co>2018-07-26 14:51:34 +0200
commitffdfb7dbabb78090b27ca29b762b803969c89fd7 (patch)
tree20eb3bff2328d6f6f8856901f4de76cb348886d3 /storage
parenta08061aa298ec4b92bbe470a1834465f25a0ad0d (diff)
downloadgo-git-ffdfb7dbabb78090b27ca29b762b803969c89fd7.tar.gz
plumbing: packfile, new Packfile representation
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
Diffstat (limited to 'storage')
-rw-r--r--storage/filesystem/storage.go15
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")
+}