C# Class GitSharp.Core.Transport.BundleWriter

Inheritance: IDisposable
Exibir arquivo Open project: jagregory/GitSharp Class Usage Examples

Public Methods

Method Description
BundleWriter ( Repository repo, ProgressMonitor monitor ) : System

Create a writer for a bundle.

Dispose ( ) : void
assume ( RevCommit c ) : void

Assume a commit is available on the recipient's side. In order to fetch from a bundle the recipient must have any assumed commit. Each assumed commit is explicitly recorded in the bundle header to permit the recipient to validate it has these objects.

include ( Ref r ) : void

Include a single ref (a name/object pair) in the bundle. This is a utility function for: include(r.getName(), r.getObjectId()).

include ( String name, AnyObjectId id ) : void

Include an object (and everything reachable from it) in the bundle.

writeBundle ( Stream os ) : void

Private Methods

Method Description
writeString ( Stream os, string data ) : void

Method Details

BundleWriter() public method

Create a writer for a bundle.
public BundleWriter ( Repository repo, ProgressMonitor monitor ) : System
repo Repository repository where objects are stored.
monitor ProgressMonitor operations progress monitor.
return System

Dispose() public method

public Dispose ( ) : void
return void

assume() public method

Assume a commit is available on the recipient's side. In order to fetch from a bundle the recipient must have any assumed commit. Each assumed commit is explicitly recorded in the bundle header to permit the recipient to validate it has these objects.
public assume ( RevCommit c ) : void
c GitSharp.Core.RevWalk.RevCommit /// the commit to assume being available. This commit should be /// parsed and not disposed in order to maximize the amount of /// debugging information available in the bundle stream. ///
return void

include() public method

Include a single ref (a name/object pair) in the bundle. This is a utility function for: include(r.getName(), r.getObjectId()).
public include ( Ref r ) : void
r Ref the ref to include.
return void

include() public method

Include an object (and everything reachable from it) in the bundle.
public include ( String name, AnyObjectId id ) : void
name String /// name the recipient can discover this object as from the /// bundle's list of advertised refs . The name must be a valid /// ref format and must not have already been included in this /// bundle writer. ///
id AnyObjectId /// object to pack. Multiple refs may point to the same object. ///
return void

writeBundle() public method

public writeBundle ( Stream os ) : void
os Stream
return void