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

Function fill_pack_info

midx-write.c:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62};
63
64static void fill_pack_info(struct pack_info *info,
65 struct packed_git *p, const char *pack_name,
66 uint32_t orig_pack_int_id)
67{
68 memset(info, 0, sizeof(struct pack_info));
69
70 info->orig_pack_int_id = orig_pack_int_id;
71 info->pack_name = xstrdup(pack_name);
72 info->p = p;
73 info->bitmap_pos = BITMAP_POS_UNKNOWN;
74}
75
76static int pack_info_compare(const void *_a, const void *_b)
77{

Callers 2

add_pack_to_midxFunction · 0.85
fill_pack_from_midxFunction · 0.85

Calls 1

xstrdupFunction · 0.85

Tested by

no test coverage detected