C# Class GitSharp.Core.Commit

Instances of this class represent a Commit object. It represents a snapshot in a Git repository, who created it and when.
Inheritance: Treeish
Mostrar archivo Open project: stschake/GitSharp Class Usage Examples

Public Methods

Method Description
Commit ( Repository db ) : System

Create an empty commit object. More information must be fed to this object to make it useful.

Commit ( Repository db, ObjectId parentIds ) : System

Create a commit associated with these parents and associate it with a repository.

Commit ( Repository db, ObjectId id, byte raw ) : System

Create a commit object with the specified id and data from an existing commit object in a repository.

Save ( ) : void

Persist this commit object

ToString ( ) : string

Private Methods

Method Description
Decode ( ) : void
ExtractTrailingBytes ( byte source, string prefix ) : byte[]

Method Details

Commit() public method

Create an empty commit object. More information must be fed to this object to make it useful.
public Commit ( Repository db ) : System
db Repository /// The repository with which to associate it. ///
return System

Commit() public method

Create a commit associated with these parents and associate it with a repository.
public Commit ( Repository db, ObjectId parentIds ) : System
db Repository /// The repository to which this commit object belongs. ///
parentIds ObjectId /// Id's of the parent(s). ///
return System

Commit() public method

Create a commit object with the specified id and data from an existing commit object in a repository.
public Commit ( Repository db, ObjectId id, byte raw ) : System
db Repository /// The repository to which this commit object belongs. ///
id ObjectId Commit id.
raw byte Raw commit object data.
return System

Save() public method

Persist this commit object
public Save ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string