C# Class GitSharp.Core.RefDatabase

Afficher le fichier Open project: stschake/GitSharp Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

ClearCache() public méthode

public ClearCache ( ) : void
Résultat void

Create() public méthode

public Create ( ) : void
Résultat void

GetAllRefs() public méthode

Gets all known refs (heads, tags, remotes).
public GetAllRefs ( ) : Ref>.Dictionary
Résultat Ref>.Dictionary

GetBranches() public méthode

public GetBranches ( ) : Ref>.Dictionary
Résultat Ref>.Dictionary

GetRemotes() public méthode

public GetRemotes ( ) : Ref>.Dictionary
Résultat Ref>.Dictionary

GetTags() public méthode

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

IdOf() public méthode

public IdOf ( string name ) : ObjectId
name string
Résultat ObjectId

Link() public méthode

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

NewRename() public méthode

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
Résultat GitSharp.Core.RefRename

NewUpdate() public méthode

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

NewUpdate() public méthode

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

ReadRef() public méthode

public ReadRef ( string partialName ) : Ref
partialName string
Résultat Ref

RefDatabase() public méthode

public RefDatabase ( Repository repo ) : System
repo Repository
Résultat System

RemovePackedRef() public méthode

public RemovePackedRef ( String name ) : void
name String
Résultat void