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

Struct Client

clients/git/client.go:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48)
49
50type Client struct {
51 repo clients.Repo
52 errListCommits error
53 gitRepo *git.Repository
54 worktree *git.Worktree
55 listCommits *sync.Once
56 tempDir string
57 commits []clients.Commit
58 commitDepth int
59}
60
61func (c *Client) InitRepo(repo clients.Repo, commitSHA string, commitDepth int) error {
62 // cleanup previous state, if any.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected