MCPcopy Index your code
hub / github.com/changesets/changesets / addFileAndCommit

Function addFileAndCommit

packages/git/src/index.test.ts:280–285  ·  view source on GitHub ↗
(file: string, cwd: string)

Source from the content-addressed store, hash-verified

278 }
279
280 async function addFileAndCommit(file: string, cwd: string) {
281 await add(file, cwd);
282 await commit(`add file ${file}`, cwd);
283 const commitSha = await getCurrentCommitId({ cwd });
284 return commitSha;
285 }
286
287 async function createShallowClone(
288 depth: number,

Callers 1

index.test.tsFile · 0.85

Calls 3

commitFunction · 0.85
getCurrentCommitIdFunction · 0.85
addFunction · 0.70

Tested by

no test coverage detected