Skip to content
  • Jonathan Tan's avatar
    sideband: reverse its dependency on pkt-line · fbd76cd4
    Jonathan Tan authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    A subsequent patch will teach struct packet_reader a new field that, if
    set, instructs it to interpret read data as multiplexed. This will
    create a dependency from pkt-line to sideband.
    
    To avoid a circular dependency, split recv_sideband() into 2 parts: the
    reading loop (left in recv_sideband()) and the processing of the
    contents (in demultiplex_sideband()), and move the former into pkt-line.
    This reverses the direction of dependency: sideband no longer depends on
    pkt-line, and pkt-line now depends on sideband.
    
    Signed-off-by: default avatarJonathan Tan <jonathantanmy@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    fbd76cd4