C# Class GitTasks.NGit

The NGit implementation of the IGitFacade. Uses NGit to perform common Git tasks.
Inheritance: IGitFacade
Show file Open project: WilbertOnGithub/MSBuildGitTasks

Public Methods

Method Description
CheckoutBranch ( string localRepository, string branch ) : void

Checkout a branch or SHA.

Clone ( string repositoryToClone, string targetDirectory ) : void

Clone a Git repository.

GetLatestSha ( string localRepository ) : string

Gets the latest SHA from a local Git repository.

Method Details

CheckoutBranch() public method

Checkout a branch or SHA.
public CheckoutBranch ( string localRepository, string branch ) : void
localRepository string The local Git repository.
branch string The branch or SHA you want to check out.
return void

Clone() public method

Clone a Git repository.
public Clone ( string repositoryToClone, string targetDirectory ) : void
repositoryToClone string The repository to clone.
targetDirectory string The target directory where you want to place the clone.
return void

GetLatestSha() public method

Gets the latest SHA from a local Git repository.
public GetLatestSha ( string localRepository ) : string
localRepository string The local Git repository.
return string