MCPcopy Create free account
hub / github.com/arctic-cli/interface / applyPatch

Function applyPatch

packages/arctic/src/patch/index.ts:517–520  ·  view source on GitHub ↗
(patchText: string)

Source from the content-addressed store, hash-verified

515
516 // Main patch application function
517 export async function applyPatch(patchText: string): Promise<AffectedPaths> {
518 const { hunks } = parsePatch(patchText)
519 return applyHunksToFiles(hunks)
520 }
521
522 // Async version of maybeParseApplyPatchVerified
523 export async function maybeParseApplyPatchVerified(

Callers

nothing calls this directly

Calls 2

parsePatchFunction · 0.85
applyHunksToFilesFunction · 0.85

Tested by

no test coverage detected