Méthode | 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 |
Méthode | 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 | |
Résultat | 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") |
Résultat |
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. |
Résultat |
public Reset ( Commit commit, ResetBehavior resetBehavior ) : void | ||
commit | Commit | |
resetBehavior | ResetBehavior | |
Résultat | void |
public Reset ( ResetBehavior resetBehavior ) : void | ||
resetBehavior | ResetBehavior | |
Résultat | void |
public Reset ( string commitHash, ResetBehavior resetBehavior ) : void | ||
commitHash | string | |
resetBehavior | ResetBehavior | |
Résultat | void |
public static SwitchTo ( |
||
branch | ||
Résultat | void |