Browse Source

Merge "UploadPack: add getProtocolV2Hook() method"

stable-5.5
Jonathan Tan 5 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
b734412724
  1. 12
      org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

12
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

@ -601,6 +601,18 @@ public class UploadPack {
this.protocolV2Hook = hook != null ? hook : ProtocolV2Hook.DEFAULT;
}
/**
* Get the currently installed protocol v2 hook.
*
* @return the hook or a default implementation if none installed.
*
* @since 5.5
*/
public ProtocolV2Hook getProtocolV2Hook() {
return this.protocolV2Hook != null ? this.protocolV2Hook
: ProtocolV2Hook.DEFAULT;
}
/**
* Set the filter used while advertising the refs to the client.
* <p>

Loading…
Cancel
Save