diff options
author | Ivan Frade <ifrade@google.com> | 2018-08-27 11:00:41 -0700 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2018-08-31 15:31:36 -0700 |
commit | a8c38bc767778f718b24cca4a97b624c16278fb8 (patch) | |
tree | 8892bd77a49c4f909d9e51d49f0ec6590a64f956 /org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/S20180820175350-2018-09.tpd | |
parent | 346bc34169e86121b71206374653891dc5bc4512 (diff) | |
download | jgit-a8c38bc767778f718b24cca4a97b624c16278fb8.tar.gz jgit-a8c38bc767778f718b24cca4a97b624c16278fb8.zip |
Extract protocol v2 fetch request parsing to its own class
The parsing code for protocol v2 fetch doesn't have any dependency on
the rest of UploadPack.
Move it to its own class. This makes testing easier (no need to
instantiate the full UploadPack), simplifies the code in UploadPack and
increases modularity.
At the moment, the parser needs to know about the reference database to
validate incoming references. This dependency could be easily removed
moving the validation later in the flow, after the parsing, where other
validations are already happening. Postponing that to keep this patch
about moving unmodified code around.
Change-Id: I7ad29a6b99caa7c12c06f5a7f30ab6a5f6e44dc7
Signed-off-by: Ivan Frade <ifrade@google.com>
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/S20180820175350-2018-09.tpd')
0 files changed, 0 insertions, 0 deletions