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

Function get_http_walker

http-walker.c:605–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605struct walker *get_http_walker(const char *url)
606{
607 char *s;
608 struct walker_data *data = xmalloc(sizeof(struct walker_data));
609 struct walker *walker = xmalloc(sizeof(struct walker));
610
611 CALLOC_ARRAY(data->alt, 1);
612 data->alt->base = xstrdup(url);
613 for (s = data->alt->base + strlen(data->alt->base) - 1; *s == '/'; --s)
614 *s = 0;
615
616 data->got_alternates = -1;
617
618 walker->corrupt_object_found = 0;
619 walker->fetch = fetch;
620 walker->fetch_ref = fetch_ref;
621 walker->prefetch = prefetch;
622 walker->cleanup = cleanup;
623 walker->data = data;
624
625 add_fill_function(NULL, fill_active_slot);
626
627 return walker;
628}

Callers 2

fetch_dumbFunction · 0.85
fetch_using_walkerFunction · 0.85

Calls 3

xstrdupFunction · 0.85
add_fill_functionFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected