C# Класс GitSharp.Core.Commit

Instances of this class represent a Commit object. It represents a snapshot in a Git repository, who created it and when.
Наследование: Treeish
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Decode ( ) : void
ExtractTrailingBytes ( byte source, string prefix ) : byte[]

Описание методов

Commit() публичный Метод

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. ///
Результат System

Commit() публичный Метод

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). ///
Результат System

Commit() публичный Метод

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.
Результат System

Save() публичный Метод

Persist this commit object
public Save ( ) : void
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string