Skip to content
  • Jonathan Tan's avatar
    {fetch,upload}-pack: sideband v2 fetch response · 0bbc0bc5
    Jonathan Tan authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Currently, a response to a fetch request has sideband support only while
    the packfile is being sent, meaning that the server cannot send notices
    until the start of the packfile.
    
    Extend sideband support in protocol v2 fetch responses to the whole
    response. upload-pack will advertise it if the
    uploadpack.allowsidebandall configuration variable is set, and
    fetch-pack will automatically request it if advertised.
    
    If the sideband is to be used throughout the whole response, upload-pack
    will use it to send errors instead of prefixing a PKT-LINE payload with
    "ERR ".
    
    This will be tested in a subsequent patch.
    
    Signed-off-by: default avatarJonathan Tan <jonathantanmy@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    0bbc0bc5