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

Function createDummyCommits

packages/git/src/index.test.ts:274–278  ·  view source on GitHub ↗

* Creates a number of empty commits; this is useful to ensure * that a particular commit doesn't make it into a shallow clone.

(count: number, cwd: string)

Source from the content-addressed store, hash-verified

272 * that a particular commit doesn't make it into a shallow clone.
273 */
274 async function createDummyCommits(count: number, cwd: string) {
275 for (let i = 0; i < count; i++) {
276 await commit("dummy commit", cwd);
277 }
278 }
279
280 async function addFileAndCommit(file: string, cwd: string) {
281 await add(file, cwd);

Callers 1

index.test.tsFile · 0.85

Calls 1

commitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…