| 860 | } |
| 861 | |
| 862 | void 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 | |
| 872 | struct packed_git *packfile_store_load_pack(struct packfile_store *store, |
| 873 | const char *idx_path, int local) |
no test coverage detected