MCPcopy Index your code
hub / github.com/git-bug/git-bug / Match

Method Match

cache/identity_excerpt.go:62–66  ·  view source on GitHub ↗

Match matches a query with the identity name, login and ID prefixes

(query string)

Source from the content-addressed store, hash-verified

60
61// Match matches a query with the identity name, login and ID prefixes
62func (i *IdentityExcerpt) Match(query string) bool {
63 return i.id.HasPrefix(query) ||
64 strings.Contains(strings.ToLower(i.Name), query) ||
65 strings.Contains(strings.ToLower(i.Login), query)
66}
67
68/*
69 * Sorting

Callers

nothing calls this directly

Calls 1

HasPrefixMethod · 0.45

Tested by

no test coverage detected