Skip to main content

gitUtils

Index

Enumerations

TreeishProtocols

TreeishProtocols:

Commit

Commit: commit

Head

Head: head

Semver

Semver: semver

Tag

Tag: tag

Type Aliases

RepoUrlParts

RepoUrlParts: { extra: {}; repo: string; treeish: { protocol: TreeishProtocols | string | null; request: string } }

Type declaration

  • extra: {}
    • [key string]: string
  • repo: string
  • treeish: { protocol: TreeishProtocols | string | null; request: string }

Functions

clone

fetchBase

  • fetchBase(root: PortablePath, __namedParameters: { baseRefs: string[] }): Promise<{ hash: string; title: string }>
  • Parameters

    Returns Promise<{ hash: string; title: string }>

fetchChangedFiles

fetchChangedWorkspaces

  • fetchChangedWorkspaces(__namedParameters: { project: Project; ref: string | true }): Promise<Set<Workspace>>
  • Parameters

    • __namedParameters: { project: Project; ref: string | true }

    Returns Promise<Set<Workspace>>

fetchRoot

isGitUrl

  • isGitUrl(url: string): boolean
  • Determines whether a given url is a valid github git url via regex


    Parameters

    • url: string

    Returns boolean

lsRemote

  • lsRemote(repo: string, configuration: Configuration): Promise<Map<any, any>>
  • Parameters

    Returns Promise<Map<any, any>>

normalizeLocator

normalizeRepoUrl

  • normalizeRepoUrl(url: string, __namedParameters?: { git?: boolean }): string
  • Parameters

    • url: string
    • __namedParameters: { git?: boolean } = {}

    Returns string

resolveUrl

  • resolveUrl(url: string, configuration: Configuration): Promise<string>
  • Parameters

    Returns Promise<string>

splitRepoUrl

validateRepoUrl

  • validateRepoUrl(url: string, __namedParameters: { configuration: Configuration }): string
  • Parameters

    Returns string