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

Function fsck_object

fsck.c:1254–1261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1252}
1253
1254int fsck_object(struct object *obj, void *data, unsigned long size,
1255 struct fsck_options *options)
1256{
1257 if (!obj)
1258 return report(options, NULL, OBJ_NONE, FSCK_MSG_BAD_OBJECT_SHA1, "no valid object to fsck");
1259
1260 return fsck_buffer(&obj->oid, obj->type, data, size, options);
1261}
1262
1263int fsck_buffer(const struct object_id *oid, enum object_type type,
1264 const void *data, unsigned long size,

Callers 3

sha1_objectFunction · 0.85
fsck_objFunction · 0.85
check_objectFunction · 0.85

Calls 2

fsck_bufferFunction · 0.85
reportFunction · 0.70

Tested by

no test coverage detected