]> source.dussan.org Git - jgit.git/commit
Use file extension with DfsPackDescription get/set file size. 89/9689/2
authorColby Ranger <cranger@google.com>
Tue, 15 Jan 2013 22:24:30 +0000 (14:24 -0800)
committerColby Ranger <cranger@google.com>
Tue, 15 Jan 2013 23:12:47 +0000 (15:12 -0800)
commit510a60554696586301f1300f3fbef66cc0be1a8f
tree007646a5ff4f3376a3d541852feecff23440cbec
parent5dcc8693d7d1ab81e3d6e6583a3918a3b6003bad
Use file extension with DfsPackDescription get/set file size.

Previously the size getters and setters had explicit methods for index
and pack. Update the api to be based on the file extension. This will
make it possible to support other extensions in the future, such as
the forthcoming bitmap extensions.

Change-Id: Iab9d4abe0af65b2fc71ad71ef1db0feb6b3b5c58
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/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