]> source.dussan.org Git - jgit.git/commitdiff
Enable serving upload requests using bitmaps. 41/7941/18
authorColby Ranger <cranger@google.com>
Wed, 26 Sep 2012 18:57:15 +0000 (11:57 -0700)
committerColby Ranger <cranger@google.com>
Tue, 5 Mar 2013 19:14:48 +0000 (11:14 -0800)
If the pack index has bitmaps, allow the PackWriter to use the bitmaps
for upload requests.

Change-Id: Iefa995fe927a11e4fd78afb34530995614221fc0

org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

index e97f03c3f188e9074e85a8cf7b56de65b9659c4a..5c959c17da3772b5891d95a80e79051aa17cfe26 100644 (file)
@@ -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);
index 74801fe41a167d5fdaf418fb5cd1831a79f8f03b..bc40454166021c7fc559c3683283a6a29fae6215 100644 (file)
@@ -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));