aboutsummaryrefslogtreecommitdiffstats
path: root/core/object.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-02-15 15:25:16 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-02-15 15:25:16 +0100
commitb682f0fbf014cf912fa94f3120fb3626ea7c4325 (patch)
treea766dd27732109cbf04ec712d8863629586eb752 /core/object.go
parent883b93e983f6666d620cb884317c2d0eab05198d (diff)
downloadgo-git-b682f0fbf014cf912fa94f3120fb3626ea7c4325.tar.gz
core.Type stringer improved
Diffstat (limited to 'core/object.go')
-rw-r--r--core/object.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/object.go b/core/object.go
index 4e8a587..1034ab3 100644
--- a/core/object.go
+++ b/core/object.go
@@ -43,8 +43,14 @@ func (t ObjectType) String() string {
return "tree"
case BlobObject:
return "blob"
+ case TagObject:
+ return "tag"
+ case OFSDeltaObject:
+ return "ofs-delta"
+ case REFDeltaObject:
+ return "ref-delta"
default:
- return "-"
+ return "unknown"
}
}