| 2838 | } |
| 2839 | |
| 2840 | void packfile_store_close(struct packfile_store *store) |
| 2841 | { |
| 2842 | for (struct packfile_list_entry *e = store->packs.head; e; e = e->next) { |
| 2843 | if (e->pack->do_not_close) |
| 2844 | BUG("want to close pack marked 'do-not-close'"); |
| 2845 | close_pack(e->pack); |
| 2846 | } |
| 2847 | if (store->midx) |
| 2848 | close_midx(store->midx); |
| 2849 | store->midx = NULL; |
| 2850 | } |
| 2851 | |
| 2852 | struct odb_packed_read_stream { |
| 2853 | struct odb_read_stream base; |
no test coverage detected