shithub: furgit

ref: 3ce59c3248dec0eb0f918c42f37f53bc2ac20425
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
}