]> source.dussan.org Git - jgit.git/commit
Make ObjectDirectory getPacks() work the first time 58/1758/3
authorShawn O. Pearce <spearce@spearce.org>
Tue, 19 Oct 2010 22:51:44 +0000 (00:51 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 19 Oct 2010 22:51:44 +0000 (00:51 +0200)
commitd00420ae6ec47419567493ee40b8cfa6525ad93d
tree1fc0da4fa94dd624aebd463d596fb744815a1a6e
parente51e06946f4ca70b6f3286593cc1406037b628a9
Make ObjectDirectory getPacks() work the first time

If an object hasn't been accessed yet the pack list for a repository
may not have been scanned from disk.  If an application (e.g. the dumb
transport servlet support code) asks for the pack list for an
ObjectDirectory, we should load it immediately.

Change-Id: I93d7b1bca422d905948e8e83b2afa83c8894a68b
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ObjectDirectory.java