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
Показать файл Открыть проект Примеры использования класса

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

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