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

Function start_object_request

http-walker.c:59–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57static void process_object_response(void *callback_data);
58
59static void start_object_request(struct object_request *obj_req)
60{
61 struct active_request_slot *slot;
62 struct http_object_request *req;
63
64 req = new_http_object_request(obj_req->repo->base, &obj_req->oid);
65 if (!req) {
66 obj_req->state = ABORTED;
67 return;
68 }
69 obj_req->req = req;
70
71 slot = req->slot;
72 slot->callback_func = process_object_response;
73 slot->callback_data = obj_req;
74
75 /* Try to get the request started, abort the request on error */
76 obj_req->state = ACTIVE;
77 if (!start_active_slot(slot)) {
78 obj_req->state = ABORTED;
79 release_http_object_request(&req);
80 return;
81 }
82}
83
84static void finish_object_request(struct object_request *obj_req)
85{

Callers 2

process_object_responseFunction · 0.85
fill_active_slotFunction · 0.85

Calls 3

new_http_object_requestFunction · 0.85
start_active_slotFunction · 0.85

Tested by

no test coverage detected