MCPcopy Create free account
hub / github.com/coderoad/coderoad-vscode / loadCommits

Function loadCommits

src/services/hooks/utils/commits.ts:13–23  ·  view source on GitHub ↗
(commits: string[] = [])

Source from the content-addressed store, hash-verified

11}
12
13export const loadCommits = async (commits: string[] = []): Promise<void> => {
14 if (commits && commits.length) {
15 // load the current list of commits for validation
16 for (const commit of commits) {
17 const commitExists = await verifyCommitUnique(commit)
18 if (!commitExists) {
19 await git.loadCommit(commit)
20 }
21 }
22 }
23}

Callers 4

onInitFunction · 0.90
onLevelEnterFunction · 0.90
onSetupEnterFunction · 0.90
onSolutionEnterFunction · 0.90

Calls 1

verifyCommitUniqueFunction · 0.85

Tested by

no test coverage detected