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

Function has_packed_and_bad

packfile.c:1256–1271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1254}
1255
1256const struct packed_git *has_packed_and_bad(struct repository *r,
1257 const struct object_id *oid)
1258{
1259 struct odb_source *source;
1260
1261 for (source = r->objects->sources; source; source = source->next) {
1262 struct odb_source_files *files = odb_source_files_downcast(source);
1263 struct packfile_list_entry *e;
1264
1265 for (e = files->packed->packs.head; e; e = e->next)
1266 if (oidset_contains(&e->pack->bad_objects, oid))
1267 return e->pack;
1268 }
1269
1270 return NULL;
1271}
1272
1273off_t get_delta_base(struct packed_git *p,
1274 struct pack_window **w_curs,

Callers 1

Calls 2

oidset_containsFunction · 0.85

Tested by

no test coverage detected