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

Function packfile_store_add_pack

packfile.c:862–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860}
861
862void packfile_store_add_pack(struct packfile_store *store,
863 struct packed_git *pack)
864{
865 if (pack->pack_fd != -1)
866 pack_open_fds++;
867
868 packfile_list_append(&store->packs, pack);
869 strmap_put(&store->packs_by_path, pack->pack_name, pack);
870}
871
872struct packed_git *packfile_store_load_pack(struct packfile_store *store,
873 const char *idx_path, int local)

Callers 2

http_install_packfileFunction · 0.85
packfile_store_load_packFunction · 0.85

Calls 2

packfile_list_appendFunction · 0.85
strmap_putFunction · 0.85

Tested by

no test coverage detected