MCPcopy Index your code
hub / github.com/git/git / prefetch

Function prefetch

http-walker.c:153–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static void prefetch(struct walker *walker, const struct object_id *oid)
154{
155 struct object_request *newreq;
156 struct walker_data *data = walker->data;
157
158 newreq = xmalloc(sizeof(*newreq));
159 newreq->walker = walker;
160 oidcpy(&newreq->oid, oid);
161 newreq->repo = data->alt;
162 newreq->state = WAITING;
163 newreq->req = NULL;
164
165 http_is_verbose = walker->get_verbosely;
166 list_add_tail(&newreq->node, &object_queue_head);
167
168 fill_active_slots();
169 step_active_slots();
170}
171
172static int is_alternate_allowed(const char *url)
173{

Callers

nothing calls this directly

Calls 5

oidcpyFunction · 0.85
list_add_tailFunction · 0.85
fill_active_slotsFunction · 0.85
step_active_slotsFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected