summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Halstrick <christian.halstrick@sap.com>2013-03-15 07:23:52 -0400
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2013-03-15 07:23:52 -0400
commite607d2a4d796f8b7abf595b51d6dddb0155cc958 (patch)
treef143e72ad7cff524504999cb41bd4d8b01e09f30
parent9b20a3b0dd5d5f765c7f5c014b8e982ecf114b74 (diff)
parenteac218b7b4f71ff5d5715105288857b34f6bc07e (diff)
downloadjgit-e607d2a4d796f8b7abf595b51d6dddb0155cc958.tar.gz
jgit-e607d2a4d796f8b7abf595b51d6dddb0155cc958.zip
Merge "Add toString() for PackConfig"
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java
index 7184859dad..ec17060dd5 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java
@@ -685,4 +685,22 @@ public class PackConfig {
"pack", "deltacompression", isDeltaCompress())); //$NON-NLS-1$ //$NON-NLS-2$
setBuildBitmaps(rc.getBoolean("pack", "buildbitmaps", isBuildBitmaps())); //$NON-NLS-1$ //$NON-NLS-2$
}
+
+ public String toString() {
+ final StringBuilder b = new StringBuilder();
+ b.append("maxDeltaDepth=").append(getMaxDeltaDepth()); //$NON-NLS-1$
+ b.append("deltaSearchWindowSize=").append(getDeltaSearchWindowSize()); //$NON-NLS-1$
+ b.append("deltaSearchMemoryLimit=").append(getDeltaSearchMemoryLimit()); //$NON-NLS-1$
+ b.append("deltaCacheSize=").append(getDeltaCacheSize()); //$NON-NLS-1$
+ b.append("deltaCacheLimit=").append(getDeltaCacheLimit()); //$NON-NLS-1$
+ b.append("compressionLevel=").append(getCompressionLevel()); //$NON-NLS-1$
+ b.append("indexVersion=").append(getIndexVersion()); //$NON-NLS-1$
+ b.append("bigFileThreshold=").append(getBigFileThreshold()); //$NON-NLS-1$
+ b.append("threads=").append(getThreads()); //$NON-NLS-1$
+ b.append("reuseDeltas=").append(isReuseDeltas()); //$NON-NLS-1$
+ b.append("reuseObjects=").append(isReuseObjects()); //$NON-NLS-1$
+ b.append("deltaCompress=").append(isDeltaCompress()); //$NON-NLS-1$
+ b.append("buildBitmaps=").append(isBuildBitmaps()); //$NON-NLS-1$
+ return b.toString();
+ }
}