]> source.dussan.org Git - jgit.git/commit
Move protocol v0/v1 parsing to its own class and request objects 59/129459/18
authorIvan Frade <ifrade@google.com>
Tue, 28 Aug 2018 20:57:52 +0000 (13:57 -0700)
committerIvan Frade <ifrade@google.com>
Mon, 15 Oct 2018 23:27:55 +0000 (16:27 -0700)
commit7d7b8dec567e0d8506d59761c09a9307d6103f6b
tree2b192fc470ae4bf1db5fd480c5ef751417de6593
parent07bff0ef3e5f39b3275de3a99c0d45892e04820a
Move protocol v0/v1 parsing to its own class and request objects

Protocol v0/v1 parsing code doesn't have any real dependency on UploadPack.

Move it to its class and use a request object to read the data in
UploadPack.

This makes the code easier to test, keeps similar structure than protocol v2,
reduces the line count of UploadPack and paves the way to remove the
members as implicit parameters in it.

Change-Id: I8188da8bd77e90230a7e37c02d800ea18463694f
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/FetchV0Request.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/ProtocolV0Parser.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java