Browse Source

Enable configuration of non-standard pack settings

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>
stable-0.9
Shawn O. Pearce 15 years ago
parent
commit
5f5da8b1d4
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java

6
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java

@ -611,5 +611,11 @@ public class PackConfig {
setIndexVersion(rc.getInt("pack", "indexversion", getIndexVersion())); setIndexVersion(rc.getInt("pack", "indexversion", getIndexVersion()));
setBigFileThreshold(rc.getLong("core", "bigfilethreshold", getBigFileThreshold())); setBigFileThreshold(rc.getLong("core", "bigfilethreshold", getBigFileThreshold()));
setThreads(rc.getInt("pack", "threads", getThreads())); 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()));
} }
} }

Loading…
Cancel
Save