diff options
Diffstat (limited to 'object/type')
| -rw-r--r-- | object/type/name.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/object/type/name.go b/object/type/name.go index 870ac1e4..d5636be9 100644 --- a/object/type/name.go +++ b/object/type/name.go @@ -7,8 +7,8 @@ const ( typeNameTag = "tag" ) -// ParseName parses a canonical Git object type name. -func ParseName(name string) (Type, bool) { +// Parse parses a canonical Git object type name. +func Parse(name string) (Type, bool) { switch name { case typeNameBlob: return TypeBlob, true @@ -24,7 +24,7 @@ func ParseName(name string) (Type, bool) { } // Name returns the canonical Git object type name. -func Name(ty Type) (string, bool) { +func (ty Type) Name() (string, bool) { switch ty { case TypeBlob: return typeNameBlob, true |
