MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / processAllHunks

Function processAllHunks

src/core/tools/apply-patch/apply.ts:193–205  ·  view source on GitHub ↗
(
	hunks: Hunk[],
	readFile: (path: string) => Promise<string>,
)

Source from the content-addressed store, hash-verified

191 * @returns Array of file changes
192 */
193export async function processAllHunks(
194 hunks: Hunk[],
195 readFile: (path: string) => Promise<string>,
196): Promise<ApplyPatchFileChange[]> {
197 const changes: ApplyPatchFileChange[] = []
198
199 for (const hunk of hunks) {
200 const change = await processHunk(hunk, readFile)
201 changes.push(change)
202 }
203
204 return changes
205}

Callers 1

executeMethod · 0.90

Calls 1

processHunkFunction · 0.85

Tested by

no test coverage detected