C# 클래스 Git.Core.ObjectStore

This class has all the information about the object store tipicaly .git/objects
파일 보기 프로젝트 열기: igorgue/git-sharp 1 사용 예제들

공개 메소드들

메소드 설명
Checkin ( string path ) : void

Checkin a single object by using its path

Checkout ( string baseDir, Commit commit ) : void

Get a commit and from there start the checkout

Checkout ( string baseDir, Tree tree ) : void

Get a tree and create the structure from there

Compress ( byte data ) : byte[]

Compress a byte array

Decompress ( byte data ) : byte[]

Decompress a byte array

Get ( SHA1 key ) : Object
Get ( string hexstring ) : Object
LsTree ( string hexstring ) : void
ObjectStore ( string path ) : System
Write ( ) : void

This method write the queue content to the filesystem

비공개 메소드들

메소드 설명
AddToQueue ( Object o ) : void
AddZlibSignature ( byte data ) : byte[]

Problem: in order to compress with Zlib(C Git deflate library) we must add 2 bytes at the begining of this, those represent the type of algorithm used, it just simple extra data that just confused me for a while

CreateObjectParent ( SHA1 id ) : void

Create a object first parent... e.g. f4/47d5573b70cf042d036bfa62f55cdefccd9909 f4 is the parent we create in this method

GetObjectFullPath ( SHA1 id ) : string
LsTree ( Tree tree ) : void
ObjectExist ( SHA1 id ) : bool
PersistObject ( SHA1 id ) : void
ReadBuffer ( SHA1 id ) : byte[]
RemoveZlibSignature ( byte data ) : byte[]
RetrieveContent ( SHA1 id ) : byte[]
RetrieveObject ( SHA1 id ) : Object
WriteBuffer ( SHA1 id, byte content ) : void
WriteBuffer ( SHA1 id, byte content, bool overwrite ) : void

메소드 상세

Checkin() 공개 메소드

Checkin a single object by using its path
public Checkin ( string path ) : void
path string /// A ///
리턴 void

Checkout() 공개 메소드

Get a commit and from there start the checkout
public Checkout ( string baseDir, Commit commit ) : void
baseDir string
commit Commit /// A ///
리턴 void

Checkout() 공개 메소드

Get a tree and create the structure from there
public Checkout ( string baseDir, Tree tree ) : void
baseDir string
tree Tree /// A ///
리턴 void

Compress() 공개 정적인 메소드

Compress a byte array
public static Compress ( byte data ) : byte[]
data byte /// A data byte array ///
리턴 byte[]

Decompress() 공개 정적인 메소드

Decompress a byte array
public static Decompress ( byte data ) : byte[]
data byte /// A data byte array ///
리턴 byte[]

Get() 공개 메소드

public Get ( SHA1 key ) : Object
key SHA1
리턴 Object

Get() 공개 메소드

public Get ( string hexstring ) : Object
hexstring string
리턴 Object

LsTree() 공개 메소드

public LsTree ( string hexstring ) : void
hexstring string
리턴 void

ObjectStore() 공개 메소드

public ObjectStore ( string path ) : System
path string
리턴 System

Write() 공개 메소드

This method write the queue content to the filesystem
public Write ( ) : void
리턴 void