diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2017-10-17 15:48:53 -0700 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2018-03-15 16:46:42 -0400 |
commit | 4ac32e79b751944107470d5f4cb290eacd1b7cf9 (patch) | |
tree | a3023f63a2493b646343b6da6e18b3c358743ed3 /org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java | |
parent | c6a2c58624e4fe4625a0e651f4e0eb91f019b381 (diff) | |
download | jgit-4ac32e79b751944107470d5f4cb290eacd1b7cf9.tar.gz jgit-4ac32e79b751944107470d5f4cb290eacd1b7cf9.zip |
Teach UploadPack to support filtering by blob size
Teach UploadPack to advertise the filter capability and support a
"filter" line in the request, accepting blob sizes only, if the
configuration variable "uploadpack.allowfilter" is true. This feature is
currently in the "master" branch of Git, and as of the time of writing,
this feature is to be released in Git 2.17.
This is incomplete in that the filter-by-sparse-specification feature
also supported by Git is not included in this patch.
If a JGit server were to be patched with this commit, and a repository
on that server configured with RequestPolicy.ANY or
RequestPolicy.REACHABLE_COMMIT_TIP, a Git client built from the "master"
branch would be able to perform a partial clone.
Change-Id: If72b4b422c06ab432137e9e5272d353b14b73259
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java index 2031147820..6d39dcd8a7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java @@ -152,6 +152,13 @@ public class GitProtocolConstants { public static final String OPTION_PUSH_CERT = "push-cert"; //$NON-NLS-1$ /** + * The client specified a filter expression. + * + * @since 5.0 + */ + public static final String OPTION_FILTER = "filter"; //$NON-NLS-1$ + + /** * The client supports atomic pushes. If this option is used, the server * will update all refs within one atomic transaction. * |