diff options
author | Santiago M. Mola <santi@mola.io> | 2016-12-14 23:12:44 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-14 23:12:44 +0100 |
commit | 0af572dd21c0aa79d13745b633ee24ba6c4d6cf1 (patch) | |
tree | 49e81e74e82d84fd88b2fc1e4b0dc7c7bfe9c40f /remote_test.go | |
parent | df0f38af83f972f026d7e14150f3d37b95f13484 (diff) | |
download | go-git-0af572dd21c0aa79d13745b633ee24ba6c4d6cf1.tar.gz |
move plumbing from top level package to plumbing (#183)
* plumbing: rename Object -> EncodedObject.
* plumbing/storer: rename ObjectStorer -> EncodedObjectStorer.
* move difftree to plumbing/difftree.
* move diff -> utils/diff
* make Object/Tag/Blob/Tree/Commit/File depend on storer.
* Object and its implementations now depend only on
storer.EncodedObjectStorer, not git.Repository.
* Tests are decoupled accordingly.
* move Object/Commit/File/Tag/Tree to plumbing/object.
* move Object/Commit/File/Tag/Tree to plumbing/object.
* move checkClose to utils/ioutil.
* move RevListObjects to plumbing/revlist.Objects.
* move DiffTree to plumbing/difftree package.
* rename files with plural nouns to singular
* plumbing/object: add GetBlob/GetCommit/GetTag/GetTree.
Diffstat (limited to 'remote_test.go')
-rw-r--r-- | remote_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remote_test.go b/remote_test.go index a4e8e35..8296f8e 100644 --- a/remote_test.go +++ b/remote_test.go @@ -178,10 +178,10 @@ func (s *RemoteSuite) TestFetchWithPackfileWriter(c *C) { c.Assert(err, IsNil) var count int - iter, err := mock.IterObjects(plumbing.AnyObject) + iter, err := mock.IterEncodedObjects(plumbing.AnyObject) c.Assert(err, IsNil) - iter.ForEach(func(plumbing.Object) error { + iter.ForEach(func(plumbing.EncodedObject) error { count++ return nil }) |