]> source.dussan.org Git - jgit.git/commit
PackIndexWriter: create interface to write indexes 75/1202275/8
authorSam Delmerico <delmerico@google.com>
Mon, 7 Oct 2024 22:20:26 +0000 (15:20 -0700)
committerSam Delmerico <delmerico@google.com>
Tue, 22 Oct 2024 21:57:48 +0000 (14:57 -0700)
commit52405358a588b6453c7568e7430456826f2ce3b4
treec9cf8838f58c5647683efca2faacc8a029d1c422
parentdd8c3dab8af85a4c367949c06c648d1e6c9a9f4a
PackIndexWriter: create interface to write indexes

PackWriter assumes that the primary index goes to a file in a well-known
format. This cannot accomodate implementations in other storages or
formats (e.g. in a database).

Create an interface to write the index (PackIndexWriter). This interface
will be implemented by the existing pack index writer classes
(PackIndexWriterV1 etc.).

As the "PackIndexWriter" name was used by the previous superclass of the
file writers, we rename that class to "BasePackIndexWriter".

Change-Id: Ia7348395315e458fc7adc75a8db5dcb903e2a4a1
14 files changed:
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/AbbreviationTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/BasePackWriterTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/PackWriterTest.java [deleted file]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackIndexWriter.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectoryPackParser.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackIndex.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackIndexWriter.java [deleted file]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackIndexWriterV1.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackIndexWriterV2.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackInserter.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackIndexWriter.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java