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

Function repo_read_loose_object_map

loose.c:110–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110int repo_read_loose_object_map(struct repository *repo)
111{
112 struct odb_source *source;
113
114 if (!should_use_loose_object_map(repo))
115 return 0;
116
117 odb_prepare_alternates(repo->objects);
118
119 for (source = repo->objects->sources; source; source = source->next) {
120 struct odb_source_files *files = odb_source_files_downcast(source);
121 if (load_one_loose_object_map(repo, files->loose) < 0) {
122 return -1;
123 }
124 }
125 return 0;
126}
127
128int repo_write_loose_object_map(struct repository *repo)
129{

Callers 2

repo_oid_to_algopFunction · 0.85

Calls 4

odb_prepare_alternatesFunction · 0.85

Tested by

no test coverage detected