| 48 | ) |
| 49 | |
| 50 | type 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 | |
| 61 | func (c *Client) InitRepo(repo clients.Repo, commitSHA string, commitDepth int) error { |
| 62 | // cleanup previous state, if any. |
nothing calls this directly
no outgoing calls
no test coverage detected