Function
processAllHunks
(
hunks: Hunk[],
readFile: (path: string) => Promise<string>,
)
Source from the content-addressed store, hash-verified
| 191 | * @returns Array of file changes |
| 192 | */ |
| 193 | export 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 | } |
Tested by
no test coverage detected