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, 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, @Nullable 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 parameter to build bitmaps. Null to disable 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.
-