C# 클래스 GitSharp.Core.RefDatabase

파일 보기 프로젝트 열기: stschake/GitSharp 1 사용 예제들

공개 메소드들

메소드 설명
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