| 317 | }; |
| 318 | |
| 319 | static int collect_diff_cb(long start_a, long count_a, |
| 320 | long start_b, long count_b, |
| 321 | void *data) |
| 322 | { |
| 323 | struct collect_diff_cbdata *d = data; |
| 324 | |
| 325 | if (count_a >= 0) |
| 326 | range_set_append(&d->diff->parent, start_a, start_a + count_a); |
| 327 | if (count_b >= 0) |
| 328 | range_set_append(&d->diff->target, start_b, start_b + count_b); |
| 329 | |
| 330 | return 0; |
| 331 | } |
| 332 | |
| 333 | static int collect_diff(mmfile_t *parent, mmfile_t *target, struct diff_ranges *out) |
| 334 | { |
nothing calls this directly
no test coverage detected