diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2018-10-05 11:04:53 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2018-10-05 11:09:27 +0200 |
commit | 9dbb18291fc680ec9326b866f133b233093d800f (patch) | |
tree | 3b05b0fad335d066aaef6a617ec81a699cab1152 /org.eclipse.jgit.pgm | |
parent | 41b1a71cf3ae571fd9808a96f827bfe660f198ab (diff) | |
download | jgit-9dbb18291fc680ec9326b866f133b233093d800f.tar.gz jgit-9dbb18291fc680ec9326b866f133b233093d800f.zip |
Revert "Configure WindowCache settings to use in JGit CLI"
This reverts commit e6375445d143d0335a9f5707e9bae1644cbef576.
Hard coding WindowCache settings wasn't a good idea, this prevents that
custom settings can be configured. Also using virtual memory mapping has
issues on Windows.
Bug: 539789
Change-Id: I37434581f9e3db2f1d7442d893f0dda0c2488d93
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java index 5ed286baa9..ad10ec9e44 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java @@ -71,7 +71,6 @@ import org.eclipse.jgit.lib.RepositoryBuilder; import org.eclipse.jgit.pgm.internal.CLIText; import org.eclipse.jgit.pgm.opt.CmdLineParser; import org.eclipse.jgit.pgm.opt.SubcommandHandler; -import org.eclipse.jgit.storage.file.WindowCacheConfig; import org.eclipse.jgit.transport.HttpTransport; import org.eclipse.jgit.transport.http.apache.HttpClientConnectionFactory; import org.eclipse.jgit.util.CachedAuthenticator; @@ -106,19 +105,10 @@ public class Main { private ExecutorService gcExecutor; - private static final int MB = 1024 * 1024; - /** * <p>Constructor for Main.</p> */ public Main() { - final WindowCacheConfig c = new WindowCacheConfig(); - c.setPackedGitMMAP(true); - c.setPackedGitWindowSize(8 * 1024); - c.setPackedGitLimit(10 * MB); - c.setDeltaBaseCacheLimit(10 * MB); - c.setStreamFileThreshold(50 * MB); - c.install(); HttpTransport.setConnectionFactory(new HttpClientConnectionFactory()); BuiltinLFS.register(); gcExecutor = Executors.newSingleThreadExecutor(new ThreadFactory() { |