Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "internal/env/gitInfo"

Index

Functions

cleanGitUrl

  • cleanGitUrl(url: string): string

obtainGitInfo

  • Return Git remote origin URL, branch, and sha for provided directory. If provided directory is not a Git repository, empty strings will be returned for the repository, branch, and sha.

    Parameters

    • directory: string

      path to local Git repository

    Returns Promise<GitInformation>

    Git URL, branch, and sha

Generated using TypeDoc