Method | Description | |
---|---|---|
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 ) : |
Create a new branch from HEAD.
|
|
Create ( Repository repo, string name, Commit commit ) : |
Create a new branch from the given commit
|
|
Delete ( ) : void |
Delete this branch
|
|
Merge ( |
||
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 ( |
Switch to the given branch
|
|
ToString ( ) : string |
Method | Description | |
---|---|---|
Branch ( Repository repo, GitSharp.Core.Ref @ref ) : System | ||
GetSafeCurrentCommit ( ) : Commit | ||
ResetHard ( Commit commit ) : void | ||
ResetSoft ( Commit commit ) : void | ||
ResolveCommit ( string commitHash ) : Commit |
public Branch ( Repository repo, string name ) : System | ||
repo | Repository | |
name | string | |
return | System |
public static Create ( Repository repo, string name ) : |
||
repo | Repository | |
name | string | The name of the branch to create (i.e. "master", not "refs/heads/master") |
return |
public static Create ( Repository repo, string name, Commit commit ) : |
||
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. |
return |
public Reset ( Commit commit, ResetBehavior resetBehavior ) : void | ||
commit | Commit | |
resetBehavior | ResetBehavior | |
return | void |
public Reset ( ResetBehavior resetBehavior ) : void | ||
resetBehavior | ResetBehavior | |
return | void |
public Reset ( string commitHash, ResetBehavior resetBehavior ) : void | ||
commitHash | string | |
resetBehavior | ResetBehavior | |
return | void |
public static SwitchTo ( |
||
branch | ||
return | void |