C# 클래스 GitSharp.Core.ObjectDirectory

Traditional file system based ObjectDatabase. This is the classical object database representation for a Git repository, where objects are stored loose by hashing them into directories by their ObjectId, or are stored in compressed containers known as PackFiles.
상속: ObjectDatabase
파일 보기 프로젝트 열기: stschake/GitSharp 1 사용 예제들

공개 메소드들

메소드 설명
ObjectDirectory ( DirectoryInfo dir, DirectoryInfo alternateObjectDir ) : System

Initialize a reference to an on-disk object directory.

OpenObjectInAllPacksImplementation ( ICollection @out, GitSharp.Core.WindowCursor windowCursor, AnyObjectId objectId ) : void
ToString ( ) : string
closeSelf ( ) : void
create ( ) : void
exists ( ) : bool
fileFor ( AnyObjectId objectId ) : FileInfo

Compute the location of a loose object file.

getDirectory ( ) : DirectoryInfo

Gets the location of the objects directory.

hasObject1 ( AnyObjectId objectId ) : bool
hasObject2 ( string objectName ) : bool
openObject1 ( GitSharp.Core.WindowCursor curs, AnyObjectId objectId ) : GitSharp.Core.ObjectLoader
openObject2 ( GitSharp.Core.WindowCursor curs, string objectName, AnyObjectId objectId ) : GitSharp.Core.ObjectLoader
openPack ( FileInfo pack, FileInfo idx ) : void

Add a single existing pack to the list of available pack files.

tryAgain1 ( ) : bool

보호된 메소드들

메소드 설명
loadAlternates ( ) : GitSharp.Core.ObjectDatabase[]

비공개 메소드들

메소드 설명
InsertPack ( PackFile pf ) : void
Open ( FileSystemInfo f ) : StreamReader
RemovePack ( PackFile deadPack ) : void
ReuseMap ( PackList old ) : PackFile>.Dictionary
ScanPacks ( PackList original ) : PackList
ScanPacksImpl ( PackList old ) : PackList
fileFor ( string objectName ) : FileInfo
indexOf ( PackFile list, PackFile pack ) : int
listPackDirectory ( ) : HashSet
openAlternate ( DirectoryInfo objdir ) : ObjectDatabase
openAlternate ( string location ) : ObjectDatabase

메소드 상세

ObjectDirectory() 공개 메소드

Initialize a reference to an on-disk object directory.
public ObjectDirectory ( DirectoryInfo dir, DirectoryInfo alternateObjectDir ) : System
dir System.IO.DirectoryInfo the location of the objects directory.
alternateObjectDir System.IO.DirectoryInfo a list of alternate object directories
리턴 System

OpenObjectInAllPacksImplementation() 공개 메소드

public OpenObjectInAllPacksImplementation ( ICollection @out, GitSharp.Core.WindowCursor windowCursor, AnyObjectId objectId ) : void
@out ICollection
windowCursor GitSharp.Core.WindowCursor
objectId AnyObjectId
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

closeSelf() 공개 메소드

public closeSelf ( ) : void
리턴 void

create() 공개 메소드

public create ( ) : void
리턴 void

exists() 공개 메소드

public exists ( ) : bool
리턴 bool

fileFor() 공개 메소드

Compute the location of a loose object file.
public fileFor ( AnyObjectId objectId ) : FileInfo
objectId AnyObjectId Identity of the loose object to map to the directory.
리턴 System.IO.FileInfo

getDirectory() 공개 메소드

Gets the location of the objects directory.
public getDirectory ( ) : DirectoryInfo
리턴 System.IO.DirectoryInfo

hasObject1() 공개 메소드

public hasObject1 ( AnyObjectId objectId ) : bool
objectId AnyObjectId
리턴 bool

hasObject2() 공개 메소드

public hasObject2 ( string objectName ) : bool
objectName string
리턴 bool

loadAlternates() 보호된 메소드

protected loadAlternates ( ) : GitSharp.Core.ObjectDatabase[]
리턴 GitSharp.Core.ObjectDatabase[]

openObject1() 공개 메소드

public openObject1 ( GitSharp.Core.WindowCursor curs, AnyObjectId objectId ) : GitSharp.Core.ObjectLoader
curs GitSharp.Core.WindowCursor
objectId AnyObjectId
리턴 GitSharp.Core.ObjectLoader

openObject2() 공개 메소드

public openObject2 ( GitSharp.Core.WindowCursor curs, string objectName, AnyObjectId objectId ) : GitSharp.Core.ObjectLoader
curs GitSharp.Core.WindowCursor
objectName string
objectId AnyObjectId
리턴 GitSharp.Core.ObjectLoader

openPack() 공개 메소드

Add a single existing pack to the list of available pack files.
/// Index file could not be opened, read, or is not recognized as /// a Git pack file index. ///
public openPack ( FileInfo pack, FileInfo idx ) : void
pack System.IO.FileInfo Path of the pack file to open.
idx System.IO.FileInfo Path of the corresponding index file.
리턴 void

tryAgain1() 공개 메소드

public tryAgain1 ( ) : bool
리턴 bool