diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2019-01-16 19:28:13 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-17 19:25:07 (GMT) |
commit | fbd76cd450e6675cbd5d48da3c53fa446b776475 (patch) | |
tree | 61be5a085f296813ac98dc99353057140bbefd0f /apply.h | |
parent | bc2e795cea607e444a9f985b0dbed5a4d25921c8 (diff) | |
download | git-fbd76cd450e6675cbd5d48da3c53fa446b776475.zip git-fbd76cd450e6675cbd5d48da3c53fa446b776475.tar.gz git-fbd76cd450e6675cbd5d48da3c53fa446b776475.tar.bz2 |
sideband: reverse its dependency on pkt-line
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: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'apply.h')
0 files changed, 0 insertions, 0 deletions