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
This commit is contained in:
Colby Ranger 2012-09-26 11:57:15 -07:00
parent dafcb8f6db
commit 43ea887c8b
2 changed files with 2 additions and 0 deletions

View File

@ -277,6 +277,7 @@ private void writePack(final Map<String, RemoteRefUpdate> refUpdates,
}
writer.setUseCachedPacks(true);
writer.setUseBitmaps(true);
writer.setThin(thinPack);
writer.setReuseValidatingObjects(false);
writer.setDeltaBaseAsOffset(capableOfsDelta);

View File

@ -1137,6 +1137,7 @@ private void sendPack(final boolean sideband) throws IOException {
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));