]> source.dussan.org Git - jgit.git/commit
Add a grace period for packfiles during GC 30/50230/2
authorChristian Halstrick <christian.halstrick@sap.com>
Fri, 12 Jun 2015 23:38:29 +0000 (01:38 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 22 Jun 2015 09:18:31 +0000 (11:18 +0200)
commit6b65adca2d50108fcb106904738b444fefe49fd1
tree5a45bd2d2bcfc891c9b8c82c1483457d75f06b1b
parent2dd4dc149ce9e6231c42eaa995c52ea3e90181dd
Add a grace period for packfiles during GC

For loose objects an expiration date can be set which will save too
young objects from being deleted. Add the same for packfiles. Packfiles
which are too young are not deleted.

Bug: 468024
Change-Id: I3956411d19b47aaadc215dab360d57fa6c24635e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcBasicPackingTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java