]> source.dussan.org Git - jgit.git/commit
Update DfsGarbageCollector to not read back a pack index. 76/9776/1
authorColby Ranger <cranger@google.com>
Sat, 19 Jan 2013 00:22:10 +0000 (16:22 -0800)
committerColby Ranger <cranger@google.com>
Sat, 19 Jan 2013 00:22:10 +0000 (16:22 -0800)
commit7c58f6282a53754822b00ae821d99262c43c86a9
tree3cf6b8865f12018c21e0c8f75a06231a2c11e04f
parent372b2c0ca69b9a7746a7612dc4e59855df801ada
Update DfsGarbageCollector to not read back a pack index.

Previously, the Dfs GC excluded objects from packs by passing a
previously written index to the PackWriter. Reading back a file on
Dfs is slow. Instead, allow the PackWriter to expose the objects
included in a pack and forward that to invocations of excludeObjects() .

Change-Id: I377cb4ab07f62cf790505e1eeb0b2efe81897c79
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackWriterTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/GC.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java