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

Function got_oid

upload-pack.c:551–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551static int got_oid(struct upload_pack_data *data,
552 const char *hex, struct object_id *oid)
553{
554 if (get_oid_hex(hex, oid))
555 die("git upload-pack: expected SHA1 object, got '%s'", hex);
556 if (!odb_has_object(the_repository->objects, oid, 0))
557 return -1;
558 return do_got_oid(data, oid);
559}
560
561static int ok_to_give_up(struct upload_pack_data *data)
562{

Callers 2

get_common_commitsFunction · 0.85
parse_haveFunction · 0.85

Calls 4

get_oid_hexFunction · 0.85
odb_has_objectFunction · 0.85
do_got_oidFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected