]> source.dussan.org Git - jgit.git/commit
Add fetch support to ProtocolV2Hook 55/127955/8
authorIvan Frade <ifrade@google.com>
Wed, 22 Aug 2018 21:45:37 +0000 (14:45 -0700)
committerJonathan Nieder <jrn@google.com>
Fri, 24 Aug 2018 20:58:52 +0000 (13:58 -0700)
commit40e9c384052a9b86ed0b51dc435d83e58515e48d
tree14886dec24495a93cd498fb0e6cb9f58e2131906
parent0b84c5b29ea27cb9af47931792c3819d96da9d8d
Add fetch support to ProtocolV2Hook

This makes it symmetrical with ls-refs operation and gives the
instantiator of UploadPack the chance to run some code after parsing
the protocol and before any actual work for the fetch starts.

Request and Builder methods keep the naming in the original code to
make this change just about request encapsulation and hook invocation.
They are package-private for now to allow further improvements.

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