C# 클래스 GitSharp.Core.ObjectWriter

파일 보기 프로젝트 열기: jagregory/GitSharp 1 사용 예제들

공개 메소드들

메소드 설명
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