Skip to content
  • Jonathan Tan's avatar
    pkt-line: introduce struct packet_writer · bc2e795c
    Jonathan Tan authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    A future patch will allow the client to request multiplexing of the
    entire fetch response (and not only during packfile transmission), which
    in turn allows the server to send progress and keepalive messages at any
    time during the response.
    
    It will be convenient for a future patch if writing options
    (specifically, whether the written data is to be multiplexed) could be
    controlled from a single place, so create struct packet_writer to serve
    as that place, and modify upload-pack to use it.
    
    Currently, it only stores the output fd, but a subsequent patch will (as
    described above) introduce an option to determine if the written data is
    to be multiplexed.
    
    Signed-off-by: default avatarJonathan Tan <jonathantanmy@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    bc2e795c