Re: [PATCH] push: Use sideband channel for hook messages
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 5, 2010, 05:53 UTC
- Message-ID
- <7v3a1gmdo3.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20100205033748.GA19255@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 11 quoted lines
> Rather than sending hook messages over stderr, and losing them > entirely on git:// and smart HTTP transports, receive-pack now > puts them onto a multiplexed sideband channel if the send-pack > client asks for the side-band-64k capablity. This ensures that > hooks from the server can report their detailed error messages, > if any, no matter what git-aware transport is being used. > > When the side band channel is being used the push client will wind up > prefixing all server messages with "remote: ", just like fetch does. > > Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This feels to me a topic that has multiple unrelated changes mixed together, making it unnecessarily confusing to review.
- capabilities_to_send -> send_capabilities;
- use of sideband in communication from send-pack to receive-pack;
- adding communication in the opposite direction to async infrastructure;
- use_sideband that is a boolean but is also used to hold LARGE_PACKET_MAX (on the receiving end).