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

Function add_object_in_unpacked_pack

builtin/pack-objects.c:4488–4499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4486}
4487
4488static int add_object_in_unpacked_pack(const struct object_id *oid,
4489 struct object_info *oi,
4490 void *data UNUSED)
4491{
4492 if (cruft) {
4493 add_cruft_object_entry(oid, OBJ_NONE, oi->u.packed.pack,
4494 oi->u.packed.offset, NULL, *oi->mtimep);
4495 } else {
4496 add_object_entry(oid, OBJ_NONE, "", 0);
4497 }
4498 return 0;
4499}
4500
4501static void add_objects_in_unpacked_packs(void)
4502{

Callers

nothing calls this directly

Calls 2

add_cruft_object_entryFunction · 0.85
add_object_entryFunction · 0.85

Tested by

no test coverage detected