Move index:pack object count checking into PackFile class
commit081e7a9fc8ef7f9bd75ab4b2df5b65dffd66966f
authorShawn O. Pearce <spearce@spearce.org>
Thu, 6 Mar 2008 00:07:10 +0000 (5 19:07 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 03:25:58 +0000 (6 23:25 -0400)
tree5faae3ad75e9c61bfb1e19fa0711ee550555adf5
parent19e1d44d8cd4460ba49ffe53b0836a8f321c014c
Move index:pack object count checking into PackFile class

If we ever start to delay the opening of the packfile until we
know we actually want/need object data from within the pack we
are likely to not be able to pass an actual length into our
PackIndex class when we create the index object.  Consequently
we need to defer this test of the object counts until we have
both open and know they are opened successfully.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/PackFile.java
org.spearce.jgit/src/org/spearce/jgit/lib/PackIndex.java