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 638d9325e..1d0f83661 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -1525,6 +1525,20 @@ public class UploadPack { return currentRequest.getDepth(); } + /** + * Returns the filter blob limit for the current request. Valid only after + * calling recvWants(). A limit -1 means no limit. + * + * @return filter blob limit requested by the client, or -1 if no limit + * @since 5.3 + */ + public long getFilterBlobLimit() { + if (currentRequest == null) { + throw new RequestNotYetReadException(); + } + return currentRequest.getFilterBlobLimit(); + } + /** * Get the user agent of the client. *