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
}
![]() |
index : ~runxiyu/furgit.git | |
| Unnamed repository; edit this file 'description' to name the repository. |
| aboutsummaryrefslogtreecommitdiff |
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
}