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

Function write_pack_info_file

server-info.c:330–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330static int write_pack_info_file(struct update_info_ctx *uic)
331{
332 int i;
333 for (i = 0; i < num_pack; i++) {
334 if (uic_printf(uic, "P %s\n", pack_basename(info[i]->p)) < 0)
335 return -1;
336 }
337 if (uic_printf(uic, "\n") < 0)
338 return -1;
339 return 0;
340}
341
342static int update_info_packs(struct repository *r, int force)
343{

Callers

nothing calls this directly

Calls 2

uic_printfFunction · 0.85
pack_basenameFunction · 0.85

Tested by

no test coverage detected