summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2018-03-13 13:29:46 -0700
committerJonathan Nieder <jrn@google.com>2018-05-16 20:54:03 -0400
commit526f5cf9840490720f8b4fd6d647bb8beb67e143 (patch)
tree2fcf1f26e971f910c5355809b314fef2302c48ff /org.eclipse.jgit
parent5a87d50408642f619b77d12a981e6e23f407752e (diff)
downloadjgit-526f5cf9840490720f8b4fd6d647bb8beb67e143.tar.gz
jgit-526f5cf9840490720f8b4fd6d647bb8beb67e143.zip
Teach UploadPack "ofs-delta" in "fetch"
Add support for the "ofs-delta" parameter in the "fetch" command in the fetch-pack/upload-pack protocol v2. Change-Id: I728cf986082fce4ddeb6a6435897692e15e60cc7 Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java2
1 files changed, 2 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 199a007abe..a1c222b19c 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
@@ -967,6 +967,8 @@ public class UploadPack {
} else if (line.equals(OPTION_INCLUDE_TAG)) {
options.add(OPTION_INCLUDE_TAG);
includeTag = true;
+ } else if (line.equals(OPTION_OFS_DELTA)) {
+ options.add(OPTION_OFS_DELTA);
}
// else ignore it
}