MCPcopy
hub / github.com/ossf/scorecard / WithFileModeGit

Function WithFileModeGit

clients/githubrepo/client.go:71–76  ·  view source on GitHub ↗

WithFileModeGit configures the repo client to fetch files using git.

()

Source from the content-addressed store, hash-verified

69
70// WithFileModeGit configures the repo client to fetch files using git.
71func WithFileModeGit() Option {
72 return func(c *repoClientConfig) error {
73 c.gitMode = true
74 return nil
75 }
76}
77
78// WithRoundTripper configures the repo client to use the specified http.RoundTripper.
79func WithRoundTripper(rt http.RoundTripper) Option {

Callers 2

RunFunction · 0.92
GetOrgRepoClientMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected