MCPcopy
hub / github.com/go-git/go-git / IsWildcard

Method IsWildcard

config/refspec.go:92–94  ·  view source on GitHub ↗

IsWildcard returns true if the RefSpec contains a wildcard.

()

Source from the content-addressed store, hash-verified

90
91// IsWildcard returns true if the RefSpec contains a wildcard.
92func (s RefSpec) IsWildcard() bool {
93 return strings.Contains(string(s), refSpecWildcard)
94}
95
96func (s RefSpec) matchExact(n plumbing.ReferenceName) bool {
97 return s.Src() == n.String()

Callers 8

MatchMethod · 0.95
DstMethod · 0.95
addOrUpdateReferencesMethod · 0.80
addCommitMethod · 0.80
doCalculateRefsFunction · 0.80
newUploadPackRequestMethod · 0.80

Calls 1

ContainsMethod · 0.65

Tested by

no test coverage detected