]> source.dussan.org Git - jgit.git/commit
Update DfsObjDatabase API to open/write by pack extension. 93/9593/5
authorColby Ranger <cranger@google.com>
Thu, 10 Jan 2013 17:58:48 +0000 (09:58 -0800)
committerColby Ranger <cranger@google.com>
Thu, 10 Jan 2013 22:02:18 +0000 (14:02 -0800)
commit5d3c2b3def82298ff046d71726ad1e228500f97e
treeae8c8f5909567d55bcb4de78439d815c80188cf2
parent4407423d29d3e3b235753f638a1fdf0b553fa64e
Update DfsObjDatabase API to open/write by pack extension.

Previously, the DfsObjDatabase had a hardcoded getPackFile() and
getPackIndex() methods which opens a .pack and .idx file, respectively.
A future change to add a bitmap index will need to be stored in a
parallel .bitmap file. Update the DfsObjDatabase to support opening and
writing of files for any pack extension.

Change-Id: I7c403b501e242096a2d435f6865d6025a9f86108
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsInserter.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsObjDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsOutputStream.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackCompactor.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackDescription.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackFile.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackParser.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/InMemoryRepository.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConstants.java [new file with mode: 0644]