]> source.dussan.org Git - jgit.git/commit
Move PackWriter configuration to PackConfig 88/1188/2
authorShawn O. Pearce <spearce@spearce.org>
Wed, 28 Jul 2010 17:45:27 +0000 (10:45 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 28 Jul 2010 19:13:48 +0000 (12:13 -0700)
commit1a06179ea707ab088b6543df77be5cf0ea44c497
tree8e5054861f8e38ff816e79c7f2ca011f29a7c9d1
parent1b783d037091266b035e1727db6b6ce7a397ef63
Move PackWriter configuration to PackConfig

This refactoring permits applications to configure global per-process
settings for all packing and easily pass it through to per-request
PackWriters, ensuring that the process configuration overrides the
repository specific settings.

For example this might help in a daemon environment where the server
wants to cap the resources used to serve a dynamic upload pack
request, even though the repository's own pack.* settings might be
configured to be more aggressive.  This allows fast but less bandwidth
efficient serving of clients, while still retaining good compression
through a cron managed `git gc`.

Change-Id: I58cc5e01b48924b1a99f79aa96c8150cdfc50846
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackWriterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaCache.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaTask.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaWindow.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ThreadSafeDeltaCache.java