]> source.dussan.org Git - jgit.git/commitdiff
Enable configuration of non-standard pack settings 91/1191/2
authorShawn O. Pearce <spearce@spearce.org>
Wed, 28 Jul 2010 18:23:32 +0000 (11:23 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 28 Jul 2010 19:13:48 +0000 (12:13 -0700)
For daemons we might want to disable delta compression entirely, or
in some strange case an administrator might need to turn of delta
reuse.  Expose these normally internal pack settings through the pack
configuration section.

Change-Id: I39bfefee8384c864cc04ffac724f197240c8a11a
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java

index 355ed8a3f74e38214e1fe58a38630c1f22dbe3bc..9bda76d96a06f9c02f2f5d321c8040115f28e8fb 100644 (file)
@@ -611,5 +611,11 @@ public class PackConfig {
                setIndexVersion(rc.getInt("pack", "indexversion", getIndexVersion()));
                setBigFileThreshold(rc.getLong("core", "bigfilethreshold", getBigFileThreshold()));
                setThreads(rc.getInt("pack", "threads", getThreads()));
+
+               // These variables aren't standardized
+               //
+               setReuseDeltas(rc.getBoolean("pack", "reusedeltas", isReuseDeltas()));
+               setReuseObjects(rc.getBoolean("pack", "reuseobjects", isReuseObjects()));
+               setDeltaCompress(rc.getBoolean("pack", "deltacompression", isDeltaCompress()));
        }
 }