| 310 | } |
| 311 | |
| 312 | static void resolve_delta(unsigned nr, enum object_type type, |
| 313 | void *base, unsigned long base_size, |
| 314 | void *delta, unsigned long delta_size) |
| 315 | { |
| 316 | void *result; |
| 317 | size_t result_size; |
| 318 | |
| 319 | result = patch_delta(base, base_size, |
| 320 | delta, delta_size, |
| 321 | &result_size); |
| 322 | if (!result) |
| 323 | die("failed to apply delta"); |
| 324 | free(delta); |
| 325 | write_object(nr, type, result, result_size); |
| 326 | } |
| 327 | |
| 328 | /* |
| 329 | * We now know the contents of an object (which is nr-th in the pack); |
no test coverage detected