MCPcopy Index your code
hub / github.com/git/git / resolve_delta

Function resolve_delta

builtin/unpack-objects.c:312–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312static 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);

Callers 3

added_objectFunction · 0.70
resolve_against_heldFunction · 0.70
unpack_delta_entryFunction · 0.70

Calls 3

patch_deltaFunction · 0.85
write_objectFunction · 0.70
dieFunction · 0.50

Tested by

no test coverage detected