Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace GitUtils

Contains a set of utility functions for Git.

Index

Functions

isBranchCheckout

isBranchCreate

  • isBranchCreate(arg: any | undefined): arg is Create

isBranchDelete

  • isBranchDelete(arg: any | undefined): arg is Delete

isBranchList

  • isBranchList(arg: any | undefined): arg is List

isBranchRename

  • isBranchRename(arg: any | undefined): arg is Rename

isRepositoryDoesNotExistError

  • isRepositoryDoesNotExistError(error: any | undefined): boolean
  • true if the argument is an error indicating the absence of a local Git repository. Otherwise, false.

    Parameters

    • error: any | undefined

    Returns boolean

isSimilarityStatus

  • isSimilarityStatus(rawStatus: string): boolean
  • true if the argument is a raw Git status with similarity percentage. Otherwise, false.

    Parameters

    • rawStatus: string

    Returns boolean

isWorkingTreeFileCheckout

mapStatus