java.lang.Object
org.eclipse.jgit.internal.storage.dfs.DfsMidxWriter
Create a pack with a multipack index, setting the required fields in the
description.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DfsPackDescriptionwriteMidx(ProgressMonitor pm, DfsObjDatabase objdb, List<DfsPackFile> packs, DfsPackDescription base) Create a pack with the multipack index (without bitmaps).static DfsPackDescriptionwriteMidx(ProgressMonitor pm, DfsObjDatabase objdb, List<DfsPackFile> packs, DfsPackDescription base, PackConfig packConfig) Create a pack with the multipack index
-
Method Details
-
writeMidx
public static DfsPackDescription writeMidx(ProgressMonitor pm, DfsObjDatabase objdb, List<DfsPackFile> packs, @Nullable DfsPackDescription base) throws IOException Create a pack with the multipack index (without bitmaps).- Parameters:
pm- a progress monitorobjdb- an object databasepacks- the packs to coverbase- parent of this midx in the chain (if any).- Returns:
- a pack (uncommitted) with the multipack index of the packs passed as parameter.
- Throws:
IOException- an error opening the packs or writing the stream.
-
writeMidx
public static DfsPackDescription writeMidx(ProgressMonitor pm, DfsObjDatabase objdb, List<DfsPackFile> packs, @Nullable DfsPackDescription base, PackConfig packConfig) throws IOException Create a pack with the multipack index- Parameters:
pm- a progress monitorobjdb- an object databasepacks- the packs to coverbase- parent of this midx in the chain (if any).packConfig- pack config with the parameters to write bitmaps.- Returns:
- a pack (uncommitted) with the multipack index of the packs passed as parameter.
- Throws:
IOException- an error opening the packs or writing the stream.
-