shithub: furgit

ref: ab174c473618dd3743881cf44e02c2db4d1ecd5f
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
}