diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-15 15:25:16 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-15 15:25:16 +0100 |
commit | b682f0fbf014cf912fa94f3120fb3626ea7c4325 (patch) | |
tree | a766dd27732109cbf04ec712d8863629586eb752 /core/object.go | |
parent | 883b93e983f6666d620cb884317c2d0eab05198d (diff) | |
download | go-git-b682f0fbf014cf912fa94f3120fb3626ea7c4325.tar.gz |
core.Type stringer improved
Diffstat (limited to 'core/object.go')
-rw-r--r-- | core/object.go | 8 |
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" } } |