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

Function fill_pack_entry

midx-write.c:242–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static void fill_pack_entry(uint32_t pack_int_id,
243 struct packed_git *p,
244 uint32_t cur_object,
245 struct pack_midx_entry *entry,
246 int preferred)
247{
248 if (nth_packed_object_id(&entry->oid, p, cur_object) < 0)
249 die(_("failed to locate object %d in packfile"), cur_object);
250
251 entry->pack_int_id = pack_int_id;
252 entry->pack_mtime = p->mtime;
253
254 entry->offset = nth_packed_object_offset(p, cur_object);
255 entry->preferred = !!preferred;
256}
257
258struct midx_fanout {
259 struct pack_midx_entry *entries;

Callers 1

Calls 3

nth_packed_object_idFunction · 0.85
nth_packed_object_offsetFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected