| 188 | }; |
| 189 | |
| 190 | static inline struct repo_for_each_pack_data repo_for_eack_pack_data_init(struct repository *repo) |
| 191 | { |
| 192 | struct repo_for_each_pack_data data = { 0 }; |
| 193 | |
| 194 | odb_prepare_alternates(repo->objects); |
| 195 | |
| 196 | for (struct odb_source *source = repo->objects->sources; source; source = source->next) { |
| 197 | struct odb_source_files *files = odb_source_files_downcast(source); |
| 198 | struct packfile_list_entry *entry = packfile_store_get_packs(files->packed); |
| 199 | if (!entry) |
| 200 | continue; |
| 201 | data.source = source; |
| 202 | data.entry = entry; |
| 203 | break; |
| 204 | } |
| 205 | |
| 206 | return data; |
| 207 | } |
| 208 | |
| 209 | static inline void repo_for_each_pack_data_next(struct repo_for_each_pack_data *data) |
| 210 | { |
nothing calls this directly
no test coverage detected