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

Function repo_for_eack_pack_data_init

packfile.h:190–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188};
189
190static 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
209static inline void repo_for_each_pack_data_next(struct repo_for_each_pack_data *data)
210{

Callers

nothing calls this directly

Calls 3

odb_prepare_alternatesFunction · 0.85
packfile_store_get_packsFunction · 0.85

Tested by

no test coverage detected