C# Class 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.
Inheritance: ObjectDatabase
Afficher le fichier Open project: stschake/GitSharp Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
loadAlternates ( ) : GitSharp.Core.ObjectDatabase[]

Private Methods

Méthode Description
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

Method Details

ObjectDirectory() public méthode

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
Résultat System

OpenObjectInAllPacksImplementation() public méthode

public OpenObjectInAllPacksImplementation ( ICollection @out, GitSharp.Core.WindowCursor windowCursor, AnyObjectId objectId ) : void
@out ICollection
windowCursor GitSharp.Core.WindowCursor
objectId AnyObjectId
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

closeSelf() public méthode

public closeSelf ( ) : void
Résultat void

create() public méthode

public create ( ) : void
Résultat void

exists() public méthode

public exists ( ) : bool
Résultat bool

fileFor() public méthode

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.
Résultat System.IO.FileInfo

getDirectory() public méthode

Gets the location of the objects directory.
public getDirectory ( ) : DirectoryInfo
Résultat System.IO.DirectoryInfo

hasObject1() public méthode

public hasObject1 ( AnyObjectId objectId ) : bool
objectId AnyObjectId
Résultat bool

hasObject2() public méthode

public hasObject2 ( string objectName ) : bool
objectName string
Résultat bool

loadAlternates() protected méthode

protected loadAlternates ( ) : GitSharp.Core.ObjectDatabase[]
Résultat GitSharp.Core.ObjectDatabase[]

openObject1() public méthode

public openObject1 ( GitSharp.Core.WindowCursor curs, AnyObjectId objectId ) : GitSharp.Core.ObjectLoader
curs GitSharp.Core.WindowCursor
objectId AnyObjectId
Résultat GitSharp.Core.ObjectLoader

openObject2() public méthode

public openObject2 ( GitSharp.Core.WindowCursor curs, string objectName, AnyObjectId objectId ) : GitSharp.Core.ObjectLoader
curs GitSharp.Core.WindowCursor
objectName string
objectId AnyObjectId
Résultat GitSharp.Core.ObjectLoader

openPack() public méthode

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.
Résultat void

tryAgain1() public méthode

public tryAgain1 ( ) : bool
Résultat bool