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

Function fsck_buffer

fsck.c:1263–1280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261}
1262
1263int fsck_buffer(const struct object_id *oid, enum object_type type,
1264 const void *data, unsigned long size,
1265 struct fsck_options *options)
1266{
1267 if (type == OBJ_BLOB)
1268 return fsck_blob(oid, data, size, options);
1269 if (type == OBJ_TREE)
1270 return fsck_tree(oid, data, size, options);
1271 if (type == OBJ_COMMIT)
1272 return fsck_commit(oid, data, size, options);
1273 if (type == OBJ_TAG)
1274 return fsck_tag(oid, data, size, options);
1275
1276 return report(options, oid, type,
1277 FSCK_MSG_UNKNOWN_TYPE,
1278 "unknown type '%d' (internal fsck error)",
1279 type);
1280}
1281
1282int fsck_objects_error_function(struct fsck_options *o,
1283 void *fsck_report,

Callers 2

index_memFunction · 0.85
fsck_objectFunction · 0.85

Calls 5

fsck_blobFunction · 0.85
fsck_treeFunction · 0.85
fsck_commitFunction · 0.85
fsck_tagFunction · 0.85
reportFunction · 0.70

Tested by

no test coverage detected