diff options
author | Colby Ranger <cranger@google.com> | 2012-09-26 11:57:15 -0700 |
---|---|---|
committer | Colby Ranger <cranger@google.com> | 2013-03-05 11:14:48 -0800 |
commit | 43ea887c8b43de26a6b7a9ea547033d3c04022e7 (patch) | |
tree | 4a0e6005359d6f6860642a2ac5dc04e2a7d86cf8 | |
parent | dafcb8f6db82b899c917832768f1c240d273190c (diff) | |
download | jgit-43ea887c8b43de26a6b7a9ea547033d3c04022e7.tar.gz jgit-43ea887c8b43de26a6b7a9ea547033d3c04022e7.zip |
Enable serving upload requests using bitmaps.
If the pack index has bitmaps, allow the PackWriter to use the bitmaps
for upload requests.
Change-Id: Iefa995fe927a11e4fd78afb34530995614221fc0
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java | 1 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java index e97f03c3f1..5c959c17da 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java @@ -277,6 +277,7 @@ public abstract class BasePackPushConnection extends BasePackConnection implemen } writer.setUseCachedPacks(true); + writer.setUseBitmaps(true); writer.setThin(thinPack); writer.setReuseValidatingObjects(false); writer.setDeltaBaseAsOffset(capableOfsDelta); 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 74801fe41a..bc40454166 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -1137,6 +1137,7 @@ public class UploadPack { final PackWriter pw = new PackWriter(cfg, walk.getObjectReader()); try { pw.setUseCachedPacks(true); + pw.setUseBitmaps(true); pw.setReuseDeltaCommits(true); pw.setDeltaBaseAsOffset(options.contains(OPTION_OFS_DELTA)); pw.setThin(options.contains(OPTION_THIN_PACK)); |