]> source.dussan.org Git - jgit.git/commit
Add "aggressive" option to GC 03/33503/4
authorChristian Halstrick <christian.halstrick@sap.com>
Wed, 17 Sep 2014 13:57:25 +0000 (15:57 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 19 Sep 2014 13:17:41 +0000 (09:17 -0400)
commit227357f929562e8010d96fedbe52df561af82c1d
treeb167ad7e57dc7443bdfdac0782af4137c993433e
parentf2ebc8d4c5af5bfaf519d19a72eba477d10d86aa
Add "aggressive" option to GC

JGit should offer the possibility to do a garbage collection in
"aggressive" mode. In this mode garbage collection more aggressively
optimize the repository at the expense of taking much more time.
Technically a aggressive mode garbage collection differs from a
non-aggressive one by:
- not reusing packed objects found in old packs. Recompress every object
- the configuration pack.window is set to 250 (the default is 10)
- the configuration pack.depths is set to 250 (the default is 50)

The associated classes in org.eclipse.jgit.api and the command line
command in org.eclipse.jgit.pgm expose this new option.

The configuration parameters gc.aggressiveDepth and gc.aggressiveWindow
have been introduced to configure this feature.

Bug: 444332
Change-Id: I024101f2810acf6be13ce144c9893d98f5c4ae76
org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Gc.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcBasicPackingTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/GarbageCollectCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java