java.lang.Object
org.eclipse.jgit.internal.storage.dfs.MidxPackList.Builder
- Enclosing class:
- MidxPackList
Builder to mutate the list of packs.
It removes midxs from the list as packs are removed, to maintain a valid
view of the packlist
-
Method Summary
Modifier and TypeMethodDescriptionadd(DfsPackFile toAdd) Add pack to the packlistbuild()Create a new pack list with the modificationsdelete(DfsPackFile toDelete) Delete the pack from the pack list Including any midx covering it directly or indirectly
-
Method Details
-
add
Add pack to the packlist- Parameters:
toAdd- pack to add- Returns:
- this builder
-
delete
Delete the pack from the pack list Including any midx covering it directly or indirectly- Parameters:
toDelete- a pack to remove from the list- Returns:
- this builder
-
build
Create a new pack list with the modifications- Returns:
- a new packlist with the changes applied
-