C# 클래스 GitSharp.Branch

Represents a branch in git. You can create and manipulate git branches and you can manipulate your working directory using Branch. Note, that new Branch( ...) does not create a new branch in the repository but rather constructs the object to manipulate an existing branch. To create a new branch use the static Branch.Create API.
상속: Ref
파일 보기 프로젝트 열기: stschake/GitSharp 1 사용 예제들

공개 메소드들

메소드 설명
Branch ( Ref @ref ) : System
Branch ( Repository repo, string name ) : System
Checkout ( ) : void

Switch to this branch and check it out into the working directory.

Create ( Repository repo, string name ) : Branch

Create a new branch from HEAD.

Create ( Repository repo, string name, Commit commit ) : Branch

Create a new branch from the given commit

Delete ( ) : void

Delete this branch

Merge ( Branch other ) : void
Rename ( string name ) : void
Reset ( ) : void
Reset ( Commit commit ) : void
Reset ( Commit commit, ResetBehavior resetBehavior ) : void
Reset ( ResetBehavior resetBehavior ) : void
Reset ( string commitHash ) : void
Reset ( string commitHash, ResetBehavior resetBehavior ) : void
SwitchTo ( Branch branch ) : void

Switch to the given branch

ToString ( ) : string

비공개 메소드들

메소드 설명
Branch ( Repository repo, GitSharp.Core.Ref @ref ) : System
GetSafeCurrentCommit ( ) : Commit
ResetHard ( Commit commit ) : void
ResetSoft ( Commit commit ) : void
ResolveCommit ( string commitHash ) : Commit

메소드 상세

Branch() 공개 메소드

public Branch ( Ref @ref ) : System
@ref Ref
리턴 System

Branch() 공개 메소드

public Branch ( Repository repo, string name ) : System
repo Repository
name string
리턴 System

Checkout() 공개 메소드

Switch to this branch and check it out into the working directory.
public Checkout ( ) : void
리턴 void

Create() 공개 정적인 메소드

Create a new branch from HEAD.
public static Create ( Repository repo, string name ) : Branch
repo Repository
name string The name of the branch to create (i.e. "master", not "refs/heads/master")
리턴 Branch

Create() 공개 정적인 메소드

Create a new branch from the given commit
public static Create ( Repository repo, string name, Commit commit ) : Branch
repo Repository
name string The name of the branch to create (i.e. "master", not "refs/heads/master")
commit Commit The commit to base the branch on.
리턴 Branch

Delete() 공개 메소드

Delete this branch
public Delete ( ) : void
리턴 void

Merge() 공개 메소드

public Merge ( Branch other ) : void
other Branch
리턴 void

Rename() 공개 메소드

public Rename ( string name ) : void
name string
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Reset() 공개 메소드

public Reset ( Commit commit ) : void
commit Commit
리턴 void

Reset() 공개 메소드

public Reset ( Commit commit, ResetBehavior resetBehavior ) : void
commit Commit
resetBehavior ResetBehavior
리턴 void

Reset() 공개 메소드

public Reset ( ResetBehavior resetBehavior ) : void
resetBehavior ResetBehavior
리턴 void

Reset() 공개 메소드

public Reset ( string commitHash ) : void
commitHash string
리턴 void

Reset() 공개 메소드

public Reset ( string commitHash, ResetBehavior resetBehavior ) : void
commitHash string
resetBehavior ResetBehavior
리턴 void

SwitchTo() 공개 정적인 메소드

Switch to the given branch
public static SwitchTo ( Branch branch ) : void
branch Branch
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string