diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-11 18:40:12 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-11 18:40:12 +0200 |
commit | 223308ee235035d26ca75fe312fe0da6e6a33222 (patch) | |
tree | 47b226db432237dbb388ee70217d6a74de14b988 /storage | |
parent | 1f64d789038594098ea2c9cf796391f101d0bea5 (diff) | |
download | go-git-223308ee235035d26ca75fe312fe0da6e6a33222.tar.gz |
storage: seekable renamed to filesystem
Diffstat (limited to 'storage')
-rw-r--r-- | storage/filesystem/internal/gitdir/gitdir.go (renamed from storage/seekable/internal/gitdir/gitdir.go) | 0 | ||||
-rw-r--r-- | storage/filesystem/internal/gitdir/gitdir_test.go (renamed from storage/seekable/internal/gitdir/gitdir_test.go) | 0 | ||||
-rw-r--r-- | storage/filesystem/internal/gitdir/refs.go (renamed from storage/seekable/internal/gitdir/refs.go) | 0 | ||||
-rw-r--r-- | storage/filesystem/internal/index/index.go (renamed from storage/seekable/internal/index/index.go) | 0 | ||||
-rw-r--r-- | storage/filesystem/internal/index/index_test.go (renamed from storage/seekable/internal/index/index_test.go) | 0 | ||||
-rw-r--r-- | storage/filesystem/storage.go (renamed from storage/seekable/storage.go) | 6 | ||||
-rw-r--r-- | storage/filesystem/storage_test.go (renamed from storage/seekable/storage_test.go) | 22 |
7 files changed, 14 insertions, 14 deletions
diff --git a/storage/seekable/internal/gitdir/gitdir.go b/storage/filesystem/internal/gitdir/gitdir.go index b5497b8..b5497b8 100644 --- a/storage/seekable/internal/gitdir/gitdir.go +++ b/storage/filesystem/internal/gitdir/gitdir.go diff --git a/storage/seekable/internal/gitdir/gitdir_test.go b/storage/filesystem/internal/gitdir/gitdir_test.go index a02e0f4..a02e0f4 100644 --- a/storage/seekable/internal/gitdir/gitdir_test.go +++ b/storage/filesystem/internal/gitdir/gitdir_test.go diff --git a/storage/seekable/internal/gitdir/refs.go b/storage/filesystem/internal/gitdir/refs.go index cfd42fd..cfd42fd 100644 --- a/storage/seekable/internal/gitdir/refs.go +++ b/storage/filesystem/internal/gitdir/refs.go diff --git a/storage/seekable/internal/index/index.go b/storage/filesystem/internal/index/index.go index 737aca6..737aca6 100644 --- a/storage/seekable/internal/index/index.go +++ b/storage/filesystem/internal/index/index.go diff --git a/storage/seekable/internal/index/index_test.go b/storage/filesystem/internal/index/index_test.go index 4ddfc25..4ddfc25 100644 --- a/storage/seekable/internal/index/index_test.go +++ b/storage/filesystem/internal/index/index_test.go diff --git a/storage/seekable/storage.go b/storage/filesystem/storage.go index e056c54..427de94 100644 --- a/storage/seekable/storage.go +++ b/storage/filesystem/storage.go @@ -1,4 +1,4 @@ -package seekable +package filesystem import ( "fmt" @@ -7,8 +7,8 @@ import ( "gopkg.in/src-d/go-git.v4/core" "gopkg.in/src-d/go-git.v4/formats/packfile" - "gopkg.in/src-d/go-git.v4/storage/seekable/internal/gitdir" - "gopkg.in/src-d/go-git.v4/storage/seekable/internal/index" + "gopkg.in/src-d/go-git.v4/storage/filesystem/internal/gitdir" + "gopkg.in/src-d/go-git.v4/storage/filesystem/internal/index" "gopkg.in/src-d/go-git.v4/utils/fs" ) diff --git a/storage/seekable/storage_test.go b/storage/filesystem/storage_test.go index bd12ed1..035a206 100644 --- a/storage/seekable/storage_test.go +++ b/storage/filesystem/storage_test.go @@ -1,4 +1,4 @@ -package seekable_test +package filesystem_test import ( "fmt" @@ -9,9 +9,9 @@ import ( "gopkg.in/src-d/go-git.v4/core" "gopkg.in/src-d/go-git.v4/formats/packfile" + "gopkg.in/src-d/go-git.v4/storage/filesystem" + "gopkg.in/src-d/go-git.v4/storage/filesystem/internal/gitdir" "gopkg.in/src-d/go-git.v4/storage/memory" - "gopkg.in/src-d/go-git.v4/storage/seekable" - "gopkg.in/src-d/go-git.v4/storage/seekable/internal/gitdir" "gopkg.in/src-d/go-git.v4/utils/fs" "github.com/alcortesm/tgz" @@ -67,7 +67,7 @@ func (s *FsSuite) TearDownSuite(c *C) { func (s *FsSuite) TestNewErrorNotFound(c *C) { fs := fs.NewOS() - _, err := seekable.New(fs, "not_found/.git") + _, err := filesystem.New(fs, "not_found/.git") c.Assert(err, Equals, gitdir.ErrNotFound) } @@ -77,7 +77,7 @@ func (s *FsSuite) TestHashNotFound(c *C) { fs := fs.NewOS() gitPath := fs.Join(path, ".git/") - sto, err := seekable.New(fs, gitPath) + sto, err := filesystem.New(fs, gitPath) c.Assert(err, IsNil) _, err = sto.Get(core.ZeroHash) @@ -100,10 +100,10 @@ func (s *FsSuite) TestGetCompareWithMemoryStorage(c *C) { memSto, err := memStorageFromGitDir(fs, gitPath) c.Assert(err, IsNil, com) - seekableSto, err := seekable.New(fs, gitPath) + filesystemSto, err := filesystem.New(fs, gitPath) c.Assert(err, IsNil, com) - equal, reason, err := equalsStorages(memSto, seekableSto) + equal, reason, err := equalsStorages(memSto, filesystemSto) c.Assert(err, IsNil, com) c.Assert(equal, Equals, true, Commentf("%s - %s\n", com.CheckCommentString(), reason)) @@ -227,7 +227,7 @@ func (s *FsSuite) TestIterCompareWithMemoryStorage(c *C) { memSto, err := memStorageFromDirPath(fs, gitPath) c.Assert(err, IsNil, com) - seekableSto, err := seekable.New(fs, gitPath) + filesystemSto, err := filesystem.New(fs, gitPath) c.Assert(err, IsNil, com) for _, typ := range [...]core.ObjectType{ @@ -240,11 +240,11 @@ func (s *FsSuite) TestIterCompareWithMemoryStorage(c *C) { memObjs, err := iterToSortedSlice(memSto, typ) c.Assert(err, IsNil, com) - seekableObjs, err := iterToSortedSlice(seekableSto, typ) + filesystemObjs, err := iterToSortedSlice(filesystemSto, typ) c.Assert(err, IsNil, com) for i, o := range memObjs { - c.Assert(seekableObjs[i].Hash(), Equals, o.Hash(), com) + c.Assert(filesystemObjs[i].Hash(), Equals, o.Hash(), com) } } } @@ -318,7 +318,7 @@ func (s *FsSuite) TestSet(c *C) { fs := fs.NewOS() gitPath := fs.Join(path, ".git/") - sto, err := seekable.New(fs, gitPath) + sto, err := filesystem.New(fs, gitPath) c.Assert(err, IsNil) _, err = sto.Set(&core.MemoryObject{}) |