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

Function for_each_cached_alternate

fetch-pack.c:111–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static void for_each_cached_alternate(struct fetch_negotiator *negotiator,
112 void (*cb)(struct fetch_negotiator *,
113 struct object *))
114{
115 static int initialized;
116 static struct alternate_object_cache cache;
117 size_t i;
118
119 if (!initialized) {
120 odb_for_each_alternate_ref(the_repository->objects,
121 cache_one_alternate, &cache);
122 initialized = 1;
123 }
124
125 for (i = 0; i < cache.nr; i++)
126 cb(negotiator, cache.items[i]);
127}
128
129static void die_in_commit_graph_only(const struct object_id *oid)
130{

Callers 3

find_commonFunction · 0.85
do_fetch_pack_v2Function · 0.85

Calls 1

Tested by

no test coverage detected