MCPcopy Create free account
hub / github.com/entireio/git-sync / refKind

Function refKind

internal/validation/validation.go:191–202  ·  view source on GitHub ↗
(name plumbing.ReferenceName)

Source from the content-addressed store, hash-verified

189)
190
191func 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}

Callers 1

NormalizeMappingFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected