]> source.dussan.org Git - jgit.git/commit
Include supported extensions in PackFile constructor. 80/9980/7
authorColby Ranger <cranger@google.com>
Mon, 28 Jan 2013 19:49:01 +0000 (11:49 -0800)
committerColby Ranger <cranger@google.com>
Thu, 28 Feb 2013 19:35:07 +0000 (11:35 -0800)
commit4a317a1790ae0d7ca2febaf41ec326ae8a8839b7
tree1ca59e6463ff3f9eaf8296eb1b3ed71bff7ab5c8
parent212fb3071cdaa08cfe8bf0243b3acd1fe23f1fa2
Include supported extensions in PackFile constructor.

Previously a PackFile class was assumed to only support a .pack and .idx
file. Update the constructor to enumerate the supported extensions for
the pack file. This will allow the bitmap code to only be executed if
the bitmap extension file is known to exist.

Change-Id: Ie59041dffec5f60d7ea2771026ffd945106bd4bf
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0004_PackReaderTest.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ObjectDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackExt.java