Don't open a PackFile multiple times on scanForPacks
commit7049de2263f6f54055466c9d9eecd1ab7f4aee69
authorShawn O. Pearce <spearce@spearce.org>
Tue, 23 Dec 2008 00:27:17 +0000 (22 16:27 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:01:49 +0000 (4 01:01 +0100)
tree757f70553b1af7f77fb100f5aac4bfdca3dcad61
parent8266ba5c7ea4e317fe684821e9e59c0fcef61caa
Don't open a PackFile multiple times on scanForPacks

If we already have a given PackFile open in this repository then
we should reuse the existing PackFile handle.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/PackFile.java
org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowedFile.java