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

Function loadCreatePatch

packages/computer/src/git/index.ts:728–737  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

726}
727
728async function loadCreatePatch(): Promise<CreatePatchFn> {
729 try {
730 const mod = await import("diff");
731 return mod.createPatch;
732 } catch (cause) {
733 throw new Error("Failed to load @cloudflare/computer/git's bundled diff implementation.", {
734 cause,
735 });
736 }
737}
738
739function readFileFrom(fs: IsomorphicGitFSClient): ReadFileFn {
740 // `fs.promises` is typed as `object` on the public surface; the

Callers 1

loadDiffPatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected