aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2019-07-24 13:37:45 -0400
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2019-07-24 13:37:45 -0400
commitb73441272448a1202debb4b02eb79301664408e6 (patch)
treeb94f798c1218915a01fdf594e92012f2543e6f29 /org.eclipse.jgit/src/org
parent690fc2267b2bc45d4bced96fbdb7699aaec5d50e (diff)
parent04cecae3da4cc6a0a149921267b2647abe6ec8b8 (diff)
downloadjgit-b73441272448a1202debb4b02eb79301664408e6.tar.gz
jgit-b73441272448a1202debb4b02eb79301664408e6.zip
Merge "UploadPack: add getProtocolV2Hook() method"
Diffstat (limited to 'org.eclipse.jgit/src/org')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
index 443c989242..c580ed0086 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
@@ -602,6 +602,18 @@ public class UploadPack {
}
/**
+ * 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>
* Only refs allowed by this filter will be sent to the client. The filter