C# Класс GitVersion.LibGitExtensions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

CheckoutFilesIfExist() публичный статический Метод

public static CheckoutFilesIfExist ( this repository ) : void
repository this
Результат void

CommitsPriorToThan() публичный статический Метод

public static CommitsPriorToThan ( this branch, DateTimeOffset olderThan ) : IEnumerable
branch this
olderThan DateTimeOffset
Результат IEnumerable

ExcludingBranches() публичный статический Метод

Exclude the given branches (by value equality according to friendly name).
public static ExcludingBranches ( [ branches, [ branchesToExclude ) : IEnumerable
branches [
branchesToExclude [
Результат IEnumerable

ExcludingBranches() публичный статический Метод

Exclude the given branches (by value equality according to friendly name).
public static ExcludingBranches ( [ branches, [ branchesToExclude ) : IEnumerable
branches [
branchesToExclude [
Результат IEnumerable

GetRepositoryDirectory() публичный статический Метод

public static GetRepositoryDirectory ( this repository, bool omitGitPostFix = true ) : string
repository this
omitGitPostFix bool
Результат string

IsDetachedHead() публичный статический Метод

public static IsDetachedHead ( this branch ) : bool
branch this
Результат bool

IsSameBranch() публичный статический Метод

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
Результат bool

PeeledTarget() публичный статический Метод

public static PeeledTarget ( this tag ) : GitObject
tag this
Результат GitObject

When() публичный статический Метод

public static When ( this commit ) : DateTimeOffset
commit this
Результат DateTimeOffset