Function generatePackRequest

  • 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.

    Parameters

    • __namedParameters: {
          body: Buffer[];
          dir: string;
          efs: EncryptedFS;
          gitDir: string;
      }
      • body: Buffer[]
      • dir: string
      • efs: EncryptedFS
      • gitDir: string
    • ctx: ContextTimed

    Returns AsyncGenerator<Buffer, void, void>

Generated using TypeDoc