shithub: furgit

ref: df1f2fb3daa1acd25c88510f259d5535fb482126
dir: /object/type/name.go/

View raw version
package objecttype

// Name returns the canonical Git object type name.
func (ty Type) Name() (string, bool) {
	details := ty.details()
	if details.name == "" {
		return "", false
	}

	return details.name, true
}