Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/sdm/util/git"

Index

Functions

commitMessageForSha

  • commitMessageForSha(sha: string, p: GitProject): Promise<string>

lastCommitMessage

  • lastCommitMessage(p: GitProject): Promise<string>
  • Get the last git commit message

    Parameters

    • p: GitProject

    Returns Promise<string>

lastSha

  • lastSha(p: GitProject): Promise<string>

retrieveLogDataForSha

  • retrieveLogDataForSha(sha: string, baseDir: string, ...placeholders: string[]): Promise<object>
  • Retrieve a number of git placeholders in a single call, for a particular sha Return an indexed property by the codes, such as H See https://git-scm.com/docs/git-log

    Parameters

    • sha: string
    • baseDir: string
    • Rest ...placeholders: string[]

    Returns Promise<object>

shaHistory

  • shaHistory(p: GitProject): Promise<string[]>
  • Get the last shas for this project

    Parameters

    • p: GitProject

    Returns Promise<string[]>

timestampFromCommit

  • timestampFromCommit(sha: string, p: GitProject): Promise<string>

Generated using TypeDoc