| 151 | } |
| 152 | |
| 153 | static 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 | |
| 172 | static int is_alternate_allowed(const char *url) |
| 173 | { |
nothing calls this directly
no test coverage detected