C# Class GitVersion.LibGitExtensions

Show file Open project: GitTools/GitVersion Class Usage Examples

Public Methods

Method Description
CheckoutFilesIfExist ( this repository ) : void
CommitsPriorToThan ( this branch, DateTimeOffset olderThan ) : IEnumerable
ExcludingBranches ( [ branches, [ branchesToExclude ) : IEnumerable

Exclude the given branches (by value equality according to friendly name).

ExcludingBranches ( [ branches, [ branchesToExclude ) : IEnumerable

Exclude the given branches (by value equality according to friendly name).

GetRepositoryDirectory ( this repository, bool omitGitPostFix = true ) : string
IsDetachedHead ( this branch ) : bool
IsSameBranch ( this branch, Branch otherBranch ) : bool

Checks if the two branch objects refer to the same branch (have the same friendly name).

PeeledTarget ( this tag ) : GitObject
When ( this commit ) : DateTimeOffset

Method Details

CheckoutFilesIfExist() public static method

public static CheckoutFilesIfExist ( this repository ) : void
repository this
return void

CommitsPriorToThan() public static method

public static CommitsPriorToThan ( this branch, DateTimeOffset olderThan ) : IEnumerable
branch this
olderThan DateTimeOffset
return IEnumerable

ExcludingBranches() public static method

Exclude the given branches (by value equality according to friendly name).
public static ExcludingBranches ( [ branches, [ branchesToExclude ) : IEnumerable
branches [
branchesToExclude [
return IEnumerable

ExcludingBranches() public static method

Exclude the given branches (by value equality according to friendly name).
public static ExcludingBranches ( [ branches, [ branchesToExclude ) : IEnumerable
branches [
branchesToExclude [
return IEnumerable

GetRepositoryDirectory() public static method

public static GetRepositoryDirectory ( this repository, bool omitGitPostFix = true ) : string
repository this
omitGitPostFix bool
return string

IsDetachedHead() public static method

public static IsDetachedHead ( this branch ) : bool
branch this
return bool

IsSameBranch() public static method

Checks if the two branch objects refer to the same branch (have the same friendly name).
public static IsSameBranch ( this branch, Branch otherBranch ) : bool
branch this
otherBranch Branch
return bool

PeeledTarget() public static method

public static PeeledTarget ( this tag ) : GitObject
tag this
return GitObject

When() public static method

public static When ( this commit ) : DateTimeOffset
commit this
return DateTimeOffset