Top Description Constructors Methods
org.eclipse.jgit.internal.storage.dfs

public Class DfsBundleWriter

extends Object
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.util.ArrayList, .List, org.eclipse.jgit.internal.storage.pack.CachedPack, org.eclipse.jgit.lib.ProgressMonitor, org.eclipse.jgit.transport.BundleWriter

Writes DfsRepository to a Git bundle.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
writeEntireRepositoryAsBundle(ProgressMonitor
progress monitor
pm
,
OutputStream
Git bundle output
os
,
DfsRepository
repository
db
)

Writes the entire DfsRepository to a Git bundle.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DfsBundleWriterback to summary
private DfsBundleWriter()

Method Detail

writeEntireRepositoryAsBundleback to summary
public static void writeEntireRepositoryAsBundle(ProgressMonitor pm, OutputStream os, DfsRepository db) throws IOException

Writes the entire DfsRepository to a Git bundle.

This method try to avoid traversing the pack files as much as possible and dumps all objects as-is to a Git bundle.

Parameters
pm:ProgressMonitor

progress monitor

os:OutputStream

Git bundle output

db:DfsRepository

repository

Exceptions
IOException:
thrown if the output stream throws one.