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

Function resolve_to

apply.c:3612–3626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3610}
3611
3612static int resolve_to(struct image *image, const struct object_id *result_id)
3613{
3614 size_t size;
3615 enum object_type type;
3616 char *data;
3617
3618 image_clear(image);
3619
3620 data = odb_read_object(the_repository->objects, result_id, &type, &size);
3621 if (!data || type != OBJ_BLOB)
3622 die("unable to read blob object %s", oid_to_hex(result_id));
3623 strbuf_attach(&image->buf, data, size, size + 1);
3624
3625 return 0;
3626}
3627
3628static int three_way_merge(struct apply_state *state,
3629 struct image *image,

Callers 1

three_way_mergeFunction · 0.85

Calls 5

image_clearFunction · 0.85
odb_read_objectFunction · 0.85
oid_to_hexFunction · 0.85
strbuf_attachFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected