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

Function matcher

bridge/core/auth/options.go:11–17  ·  view source on GitHub ↗
(opts []ListOption)

Source from the content-addressed store, hash-verified

9type ListOption func(opts *listOptions)
10
11func matcher(opts []ListOption) *listOptions {
12 result := &listOptions{}
13 for _, opt := range opts {
14 opt(result)
15 }
16 return result
17}
18
19func (opts *listOptions) Match(cred Credential) bool {
20 if opts.target != "" && cred.Target() != opts.target {

Callers 1

ListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected