diff options
| author | Carlos MartÃn Nieto <[email protected]> | 2019-01-05 11:04:03 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-05 11:04:03 +0000 |
| commit | fb438dbf9a0605a57d80b8808375eb10b9c19356 (patch) | |
| tree | 33af1647493987eab960d86cd74e5b28cee6f728 /object.go | |
| parent | b06a2a69003a60c244c6c3bc0da5e1fa393402cf (diff) | |
| parent | ee6dff2f8e3b130dee5e888f18cae0f74c35e8cd (diff) | |
Merge pull request #474 from libgit2/cmn/deprecated-names
Use git_object_t instead of deprecated git_otype
Diffstat (limited to 'object.go')
| -rw-r--r-- | object.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -13,12 +13,12 @@ import ( type ObjectType int const ( - ObjectAny ObjectType = C.GIT_OBJ_ANY - ObjectBad ObjectType = C.GIT_OBJ_BAD - ObjectCommit ObjectType = C.GIT_OBJ_COMMIT - ObjectTree ObjectType = C.GIT_OBJ_TREE - ObjectBlob ObjectType = C.GIT_OBJ_BLOB - ObjectTag ObjectType = C.GIT_OBJ_TAG + ObjectAny ObjectType = C.GIT_OBJECT_ANY + ObjectBad ObjectType = C.GIT_OBJECT_BAD + ObjectCommit ObjectType = C.GIT_OBJECT_COMMIT + ObjectTree ObjectType = C.GIT_OBJECT_TREE + ObjectBlob ObjectType = C.GIT_OBJECT_BLOB + ObjectTag ObjectType = C.GIT_OBJECT_TAG ) type Object struct { @@ -217,7 +217,7 @@ func (o *Object) Peel(t ObjectType) (*Object, error) { runtime.LockOSThread() defer runtime.UnlockOSThread() - err := C.git_object_peel(&cobj, o.ptr, C.git_otype(t)) + err := C.git_object_peel(&cobj, o.ptr, C.git_object_t(t)) runtime.KeepAlive(o) if err < 0 { return nil, MakeGitError(err) |
