@hashgraph/solo
    Preparing search index...

    A client interface for interacting with the git command-line tool.

    interface GitClient {
        describeTag(directory: string): Promise<string>;
        version(): Promise<string>;
    }

    Implemented by

    Index

    Methods

    • Returns the most recent tag reachable from HEAD in the given directory. Equivalent to running git -C <directory> describe --tags --abbrev=0.

      Parameters

      • directory: string

        the path to the git repository.

      Returns Promise<string>

      the tag string.

      an error if no tag is found or git fails.

    • Returns the version string reported by git.

      Returns Promise<string>

      the output of git version.

      an error if git is not available.