C# Class GitVersion.LibGitExtensions

Afficher le fichier Open project: GitTools/GitVersion Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static CheckoutFilesIfExist ( this repository ) : void
repository this
Résultat void

CommitsPriorToThan() public static méthode

public static CommitsPriorToThan ( this branch, DateTimeOffset olderThan ) : IEnumerable
branch this
olderThan DateTimeOffset
Résultat IEnumerable

ExcludingBranches() public static méthode

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

ExcludingBranches() public static méthode

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

GetRepositoryDirectory() public static méthode

public static GetRepositoryDirectory ( this repository, bool omitGitPostFix = true ) : string
repository this
omitGitPostFix bool
Résultat string

IsDetachedHead() public static méthode

public static IsDetachedHead ( this branch ) : bool
branch this
Résultat bool

IsSameBranch() public static méthode

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
Résultat bool

PeeledTarget() public static méthode

public static PeeledTarget ( this tag ) : GitObject
tag this
Résultat GitObject

When() public static méthode

public static When ( this commit ) : DateTimeOffset
commit this
Résultat DateTimeOffset