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

Function nth_midxed_pack_midx_entry

midx-write.c:226–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226static int nth_midxed_pack_midx_entry(struct multi_pack_index *m,
227 struct pack_midx_entry *e,
228 uint32_t pos)
229{
230 if (pos >= m->num_objects + m->num_objects_in_base)
231 return 1;
232
233 nth_midxed_object_oid(&e->oid, m, pos);
234 e->pack_int_id = nth_midxed_pack_int_id(m, pos);
235 e->offset = nth_midxed_offset(m, pos);
236
237 /* consider objects in midx to be from "old" packs */
238 e->pack_mtime = 0;
239 return 0;
240}
241
242static void fill_pack_entry(uint32_t pack_int_id,
243 struct packed_git *p,

Callers 1

Calls 3

nth_midxed_object_oidFunction · 0.85
nth_midxed_pack_int_idFunction · 0.85
nth_midxed_offsetFunction · 0.85

Tested by

no test coverage detected