This is the main method for handing the packfile-send stage of the http protocol.
It parses the http body send by the client into a list of wants and haves using parsePackRequest. It then
uses these lists to walk the git datastructures to decide which objects to send back to the client.
It does this by using listObjects to get all the relevant objects and generatePackData to generate the packfile
part of the response.
It will respond with the PKT-LINE(NAK_BUFFER) and then the packFile data chunked into lines for the stream.
This is the main method for handing the packfile-send stage of the http protocol. It parses the http body send by the client into a list of
wants
andhaves
usingparsePackRequest
. It then uses these lists to walk the git datastructures to decide which objects to send back to the client. It does this by usinglistObjects
to get all the relevant objects andgeneratePackData
to generate the packfile part of the response.It will respond with the
PKT-LINE(NAK_BUFFER)
and then thepackFile
data chunked into lines for the stream.