MCPcopy Create free account
hub / github.com/cloudflare/computer / diff

Function diff

packages/computer/src/git/index.ts:405–415  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

403 });
404 },
405 async diff(options = {}) {
406 const f = await fs();
407 return diffWith({
408 ...options,
409 fs: f,
410 git: await loadGit<IsomorphicGitDiffClient>(),
411 createPatch: await loadDiffPatch(),
412 readFile: readFileFrom(f),
413 cache,
414 });
415 },
416 async diffSummary(options = {}) {
417 const f = await fs();
418 return diffSummaryWith({

Callers

nothing calls this directly

Calls 4

diffWithFunction · 0.85
loadDiffPatchFunction · 0.85
readFileFromFunction · 0.85
fsFunction · 0.70

Tested by

no test coverage detected