Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

move plumbing from top level package to plumbing #183

Merged
merged 10 commits into from
Dec 14, 2016
Merged

move plumbing from top level package to plumbing #183

merged 10 commits into from
Dec 14, 2016

Conversation

smola
Copy link
Collaborator

@smola smola commented Dec 13, 2016

No description provided.

@smola smola added this to the v4 milestone Dec 13, 2016
@smola
Copy link
Collaborator Author

smola commented Dec 13, 2016

Maybe we should merge this PR without squash.

@codecov-io
Copy link

codecov-io commented Dec 13, 2016

Current coverage is 76.61% (diff: 76.35%)

Merging #183 into master will decrease coverage by 1.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   

Powered by Codecov. Last update 1d78a9a...dfd2bb7

@mcuadros
Copy link
Contributor

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad import order.

Copy link
Collaborator Author

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()
}
*/
Copy link
Contributor

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.

Copy link
Collaborator Author

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},
Copy link
Contributor

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)

Copy link
Collaborator Author

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad import order.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@smola
Copy link
Collaborator Author

smola commented Dec 14, 2016

@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).

@mcuadros mcuadros merged commit f4bea44 into src-d:master Dec 14, 2016
@mcuadros
Copy link
Contributor

fuck, I merged doing squash, sorry

mcuadros pushed a commit that referenced this pull request Jan 31, 2017
* 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.
gsalingu-ovhus pushed a commit to gsalingu-ovhus/go-git that referenced this pull request Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants