]> source.dussan.org Git - jgit.git/commit
Extract BlockBasedFile base class for DfsPackFile 77/100577/2
authorShawn Pearce <spearce@spearce.org>
Tue, 4 Jul 2017 00:48:34 +0000 (17:48 -0700)
committerShawn Pearce <spearce@spearce.org>
Mon, 17 Jul 2017 15:15:37 +0000 (08:15 -0700)
commit84c71ac93350e9d1e781efeaeab64e4277d585bc
treefef91115fa9f94954e17f3075d96ebd8a2100c0b
parent8c566be72fd4d2cf7aab9accaa5b869e5bcc73f0
Extract BlockBasedFile base class for DfsPackFile

This new base class has the minimum set of properties and methods
necessary for DfsBlockCache to manage blocks of a file in the cache.
Subclasses can use DfsBlockCache for any content.

This refactoring opens the door for additional PackExt types other
than PACK to be stored on a block-by-block basis by the DfsBlockCache.

Change-Id: I307228fc805c3ff0c596783beb24fd52bec35ba8
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/BlockBasedFile.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlock.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java