C# Класс GitSharp.Core.RefDatabase

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ClearCache ( ) : void
Create ( ) : void
GetAllRefs ( ) : Ref>.Dictionary

Gets all known refs (heads, tags, remotes).

GetBranches ( ) : Ref>.Dictionary
GetRemotes ( ) : Ref>.Dictionary
GetTags ( ) : Ref>.Dictionary

Gets all tags; key is short tag name ("v1.0") and value of the entry contains the ref with the full tag name ("refs/tags/v1.0").

IdOf ( string name ) : ObjectId
Link ( string name, string target ) : void

Writes a symref (e.g. HEAD) to disk * @param name

NewRename ( string fromRef, string toRef ) : GitSharp.Core.RefRename

An set of update operations for renaming a ref

NewUpdate ( string name ) : RefUpdate

Create a command to update, create or delete a ref in this repository.

NewUpdate ( string name, bool detach ) : RefUpdate

Create a command to update, create or delete a ref in this repository.

ReadRef ( string partialName ) : Ref
RefDatabase ( Repository repo ) : System
RemovePackedRef ( String name ) : void

Приватные методы

Метод Описание
FileForRef ( string name ) : FileInfo
LockAndWriteFile ( FileInfo file, byte content ) : void
OpenReader ( FileSystemInfo file ) : StreamReader
Peel ( Ref dref ) : Ref

Returns the object that this object points to if this is a commit.

ReadLine ( FileInfo file ) : string
ReadLooseRefs ( Ref>.IDictionary avail, string prefix, DirectoryInfo dir ) : void
ReadPackedRefs ( Ref>.ICollection avail ) : void
ReadRefBasic ( String origName, string name, int depth ) : Ref
ReadRefBasic ( string name, int depth ) : Ref
ReadRefs ( ) : Ref>.Dictionary
RefreshPackedRefs ( ) : void
SetModified ( ) : void
Stored ( string origName, string name, ObjectId id, System.DateTime time ) : void
UncacheRef ( string name ) : void
UncacheSymRef ( string name ) : void
WritePackedRefs ( ) : void

Описание методов

ClearCache() публичный Метод

public ClearCache ( ) : void
Результат void

Create() публичный Метод

public Create ( ) : void
Результат void

GetAllRefs() публичный Метод

Gets all known refs (heads, tags, remotes).
public GetAllRefs ( ) : Ref>.Dictionary
Результат Ref>.Dictionary

GetBranches() публичный Метод

public GetBranches ( ) : Ref>.Dictionary
Результат Ref>.Dictionary

GetRemotes() публичный Метод

public GetRemotes ( ) : Ref>.Dictionary
Результат Ref>.Dictionary

GetTags() публичный Метод

Gets all tags; key is short tag name ("v1.0") and value of the entry contains the ref with the full tag name ("refs/tags/v1.0").
public GetTags ( ) : Ref>.Dictionary
Результат Ref>.Dictionary

IdOf() публичный Метод

public IdOf ( string name ) : ObjectId
name string
Результат ObjectId

Link() публичный Метод

Writes a symref (e.g. HEAD) to disk * @param name
public Link ( string name, string target ) : void
name string symref name
target string pointed to ref
Результат void

NewRename() публичный Метод

An set of update operations for renaming a ref
public NewRename ( string fromRef, string toRef ) : GitSharp.Core.RefRename
fromRef string Old ref name
toRef string New ref name
Результат GitSharp.Core.RefRename

NewUpdate() публичный Метод

Create a command to update, create or delete a ref in this repository.
/// A symbolic ref was passed in and could not be resolved back /// to the base ref, as the symbolic ref could not be read. ///
public NewUpdate ( string name ) : RefUpdate
name string /// name of the ref the caller wants to modify. ///
Результат RefUpdate

NewUpdate() публичный Метод

Create a command to update, create or delete a ref in this repository.
public NewUpdate ( string name, bool detach ) : RefUpdate
name string name of the ref the caller wants to modify.
detach bool true to detach the ref, i.e. replace symref with object ref
Результат RefUpdate

ReadRef() публичный Метод

public ReadRef ( string partialName ) : Ref
partialName string
Результат Ref

RefDatabase() публичный Метод

public RefDatabase ( Repository repo ) : System
repo Repository
Результат System

RemovePackedRef() публичный Метод

public RemovePackedRef ( String name ) : void
name String
Результат void