Search Results for

    Show / Hide Table of Contents

    Interface IGitVersionCalculator

    Version calculator based on Git

    Namespace: i5.Toolkit.Core.VersionTool
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IGitVersionCalculator

    Methods

    TryGetBranch(out string)

    Tries to get the name of the currently checked out git branch

    Declaration
    bool TryGetBranch(out string branchName)
    Parameters
    Type Name Description
    string branchName

    If the branch name could be fetched, it is passed to this out parameter

    Returns
    Type Description
    bool

    Returns true if the branch name could be fetched, otherwise false

    TryGetTotalCommitsOnBranch(out int)

    Tries to count the number of commits on the currently checked out branch

    Declaration
    bool TryGetTotalCommitsOnBranch(out int commitCount)
    Parameters
    Type Name Description
    int commitCount

    If the number of commits could be calculated, it is passed to this out parameter

    Returns
    Type Description
    bool

    Returns true if the number of commits could be calculated, otherwise false

    TryGetVersion(out string)

    Tries to calculate a version string based on git's tag information

    Declaration
    bool TryGetVersion(out string version)
    Parameters
    Type Name Description
    string version

    If the version could be calculated, it is passed to this out parameter

    Returns
    Type Description
    bool

    Returns true if the version could be calulcated, otherwise false

    In this article
    Back to top i5 Toolkit Documentation