Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit b682f0f

Browse files
committed
core.Type stringer improved
1 parent 883b93e commit b682f0f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/object.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,14 @@ func (t ObjectType) String() string {
4343
return "tree"
4444
case BlobObject:
4545
return "blob"
46+
case TagObject:
47+
return "tag"
48+
case OFSDeltaObject:
49+
return "ofs-delta"
50+
case REFDeltaObject:
51+
return "ref-delta"
4652
default:
47-
return "-"
53+
return "unknown"
4854
}
4955
}
5056

0 commit comments

Comments
 (0)