Teach UploadPack how to use an RPC style interface
commite187618b6bc098f367d36c945f8518e4b2aeb63f
authorShawn O. Pearce <spearce@spearce.org>
Wed, 7 Oct 2009 07:10:51 +0000 (7 00:10 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 12 Jan 2010 19:56:55 +0000 (12 11:56 -0800)
tree03d4a07c29da8e6a2930de9c813b0808b1423765
parent2a5c8cb46c797b756b247d57f70a90d3939e149c
Teach UploadPack how to use an RPC style interface

If biDirectionalPipe is false UploadPack does not start out with
the advertisement but instead assumes it should read one block of
want/have lines, process that, and write the ACK/NAKs out.

This means it only is doing one read through the input followed by
one write to the output, which fits with the HTTP request processing
model, and any other type of RPC system.

Change-Id: Ia9f7c46ee556f996367180f15d2caa8572cdd59f
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java