-
Notifications
You must be signed in to change notification settings - Fork 534
move plumbing from top level package to plumbing #183
Conversation
Maybe we should merge this PR without squash. |
Current coverage is 76.61% (diff: 76.35%)@@ master #183 diff @@
==========================================
Files 92 92
Lines 5892 5913 +21
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 4594 4530 -64
- Misses 810 905 +95
+ Partials 488 478 -10
|
If you don't mind, can you include in this PR, rename some files in the root of the project to singular? |
@@ -9,13 +9,15 @@ import ( | |||
"gopkg.in/src-d/go-git.v4/plumbing/transport/client" | |||
|
|||
. "gopkg.in/check.v1" | |||
"gopkg.in/src-d/go-git.v4/plumbing/storer" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad import order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -163,7 +163,7 @@ func c_TreeWalker_Close(tw uint64) { | |||
if !ok { | |||
return | |||
} | |||
walker := obj.(*git.TreeIter) | |||
walker := obj.(*object.TreeIter) | |||
walker.Close() | |||
} | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this file is commented? maybe we can delete it in this refactor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. cshared package is half-commented-half-broken until we stabilize the API.
@@ -1418,7 +1419,7 @@ func (s *TreeSuite) TestTreeDecodeReadBug(c *C) { | |||
}, | |||
}, | |||
Hash: plumbing.Hash{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZeroHash? (maybe is not the correct PR to change it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Not touching it here.
@@ -8,6 +8,7 @@ import ( | |||
"gopkg.in/src-d/go-git.v4/plumbing" | |||
|
|||
. "gopkg.in/check.v1" | |||
"gopkg.in/src-d/go-git.v4/plumbing/object" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad import order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@mcuadros Done. Except for references.go (which is for a function called References, which we might remove/move anyway) and options.go (which actually defines Options objects). |
* 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 checkClose to utils/ioutil.
fuck, I merged doing squash, sorry |
* 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.
No description provided.