(name plumbing.ReferenceName)
| 189 | ) |
| 190 | |
| 191 | func refKind(name plumbing.ReferenceName) string { |
| 192 | switch { |
| 193 | case name.IsBranch(): |
| 194 | return kindBranch |
| 195 | case name.IsTag(): |
| 196 | return kindTag |
| 197 | case strings.HasPrefix(name.String(), "refs/"): |
| 198 | return kindOther |
| 199 | default: |
| 200 | return "" |
| 201 | } |
| 202 | } |
no test coverage detected