diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-08 23:46:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 23:46:38 +0100 |
commit | ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d (patch) | |
tree | 223f36f336ba3414b1e45cac8af6c4744a5d7ef6 /cshared/commit_cshared.go | |
parent | e523701393598f4fa241dd407af9ff8925507a1a (diff) | |
download | go-git-ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d.tar.gz |
new plumbing package (#118)
* plumbing: now core was renamed to core, and formats and clients moved inside
Diffstat (limited to 'cshared/commit_cshared.go')
-rw-r--r-- | cshared/commit_cshared.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cshared/commit_cshared.go b/cshared/commit_cshared.go index 8cb91aa..756b0b2 100644 --- a/cshared/commit_cshared.go +++ b/cshared/commit_cshared.go @@ -8,8 +8,9 @@ import ( "unsafe" "gopkg.in/src-d/go-git.v4" - "gopkg.in/src-d/go-git.v4/core" + "gopkg.in/src-d/go-git.v4/plumbing" ) +import "gopkg.in/src-d/go-git.v4/plumbing/storer" //export c_Commit_get_Hash func c_Commit_get_Hash(c uint64) *C.char { @@ -130,7 +131,7 @@ func c_Commit_Decode(o uint64) (uint64, int, *C.char) { if !ok { return IH, ErrorCodeNotFound, C.CString(MessageNotFound) } - cobj := obj.(*core.Object) + cobj := obj.(*plumbing.Object) err := commit.Decode(*cobj) if err != nil { return IH, ErrorCodeInternal, C.CString(err.Error()) @@ -196,7 +197,7 @@ func c_NewCommitIter(r uint64, iter uint64) uint64 { if !ok { return IH } - obj_iter := obj.(*core.ObjectIter) + obj_iter := obj.(*storer.ObjectIter) commit_iter := git.NewCommitIter(repo, *obj_iter) handle := RegisterObject(commit_iter) return uint64(handle) |