aboutsummaryrefslogtreecommitdiff
path: root/object/type/name.go
blob: c95fe90b79b52f4dd5c12e86df547cf1b267dd6b (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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
}