MCPcopy Create free account
hub / github.com/git/git / collect_diff_cb

Function collect_diff_cb

line-log.c:319–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317};
318
319static 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
333static int collect_diff(mmfile_t *parent, mmfile_t *target, struct diff_ranges *out)
334{

Callers

nothing calls this directly

Calls 1

range_set_appendFunction · 0.85

Tested by

no test coverage detected