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

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ComputeBlobSha1 ( long length, Stream input ) : ObjectId

Compute the SHA-1 of a blob without creating an object. This is for figuring out if we already have a blob or not.

ObjectWriter ( Repository repo ) : System

Construct an object writer for the specified repository.

WriteBlob ( FileInfo fileInfo ) : ObjectId

Write a blob with the data in the specified file

WriteBlob ( byte b ) : ObjectId

Write a blob with the specified data.

WriteBlob ( long len, Stream input ) : ObjectId

Write a blob with data from a stream

WriteCanonicalTree ( byte buffer ) : ObjectId

Write a canonical tree to the object database.

WriteCommit ( Commit c ) : ObjectId

Write a Commit to the object database

WriteTag ( Tag tag ) : ObjectId

Write an annotated Tag to the object database

WriteTree ( Tree t ) : ObjectId

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

Метод Описание
WriteCommit ( byte b ) : ObjectId
WriteCommit ( long len, Stream input ) : ObjectId
WriteObject ( ObjectType type, long len, Stream input, bool store ) : ObjectId
WriteTag ( byte b ) : ObjectId
WriteTag ( long len, Stream input ) : ObjectId
WriteTree ( long len, Stream input ) : ObjectId

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

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

Compute the SHA-1 of a blob without creating an object. This is for figuring out if we already have a blob or not.
public ComputeBlobSha1 ( long length, Stream input ) : ObjectId
length long number of bytes to consume.
input Stream stream for read blob data from.
Результат ObjectId

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

Construct an object writer for the specified repository.
public ObjectWriter ( Repository repo ) : System
repo Repository
Результат System

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

Write a blob with the data in the specified file
public WriteBlob ( FileInfo fileInfo ) : ObjectId
fileInfo System.IO.FileInfo A file containing blob data.
Результат ObjectId

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

Write a blob with the specified data.
public WriteBlob ( byte b ) : ObjectId
b byte Bytes of the blob.
Результат ObjectId

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

Write a blob with data from a stream
public WriteBlob ( long len, Stream input ) : ObjectId
len long Number of bytes to consume from the stream.
input Stream Stream with blob data.
Результат ObjectId

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

Write a canonical tree to the object database.
public WriteCanonicalTree ( byte buffer ) : ObjectId
buffer byte The canonical encoding of the tree object.
Результат ObjectId

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

Write a Commit to the object database
public WriteCommit ( Commit c ) : ObjectId
c Commit Commit to store.
Результат ObjectId

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

Write an annotated Tag to the object database
public WriteTag ( Tag tag ) : ObjectId
tag Tag Tag
Результат ObjectId

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

public WriteTree ( Tree t ) : ObjectId
t Tree
Результат ObjectId