diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDirectory.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDirectory.java
index f94d0d5fb438fe8691f0bfa587efef3eda770024..a6fdbfae5caeb90b4ff059ff755e019665902177 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDirectory.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDirectory.java
@@ -147,6 +147,18 @@ private File fileFor(final String objectName) {
 		return new File(new File(objects, d), f);
 	}
 
+	/**
+	 * @return unmodifiable collection of all known pack files local to this
+	 *         directory. Most recent packs are presented first. Packs most
+	 *         likely to contain more recent objects appear before packs
+	 *         containing objects referenced by commits further back in the
+	 *         history of the repository.
+	 */
+	public Collection<PackFile> getPacks() {
+		final PackFile[] packs = packList.get().packs;
+		return Collections.unmodifiableCollection(Arrays.asList(packs));
+	}
+
 	/**
 	 * Add a single existing pack to the list of available pack files.
 	 *