http.git.parse_upload_pack_request

http.git

parse_upload_pack_request(body) -> req, err

Parse an upload-pack request body (want/have/done pkt-lines)

Returns { wants = {sha, ...}, haves = {sha, ...}, done = bool, side_band = bool, side_band_64k = bool, multi_ack_detailed = bool, no_done = bool }, the haves in the order sent. The flags come from the capabilities on the want lines. Shallow and filter requests yield an error.