summaryrefslogtreecommitdiff
path: root/object.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2019-02-15 14:26:37 +0100
committerGitHub <[email protected]>2019-02-15 14:26:37 +0100
commitbf1e8a4338822ad2539a3876f58b15b590eb9e1f (patch)
treee05523858ab07cb0df457dd3d55cf5303222445c /object.go
parent2f91268f7464b21051b4800975a04a1ecde3f559 (diff)
parent5fda6dd90191b1c51a1785ad7cabd2fd5b05e802 (diff)
Merge pull request #479 from lhchavez/uprev-libgit2
Uprev vendored libgit2 to v.0.28
Diffstat (limited to 'object.go')
-rw-r--r--object.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/object.go b/object.go
index 40ab2bf..2d75b06 100644
--- a/object.go
+++ b/object.go
@@ -13,12 +13,12 @@ import (
type ObjectType int
const (
- 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
+ ObjectAny ObjectType = C.GIT_OBJECT_ANY
+ ObjectInvalid ObjectType = C.GIT_OBJECT_INVALID
+ 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 {
@@ -35,8 +35,8 @@ func (t ObjectType) String() string {
switch t {
case ObjectAny:
return "Any"
- case ObjectBad:
- return "Bad"
+ case ObjectInvalid:
+ return "Invalid"
case ObjectCommit:
return "Commit"
case ObjectTree: