Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace GitUtils

Contains a set of utility functions for Git.

Index

Functions

  • isBranchCreate(arg: unknown): arg is Create
  • isBranchDelete(arg: unknown): arg is Delete
  • isBranchList(arg: unknown): arg is List
  • isBranchRename(arg: unknown): arg is Rename
  • isRepositoryDoesNotExistError(error: unknown): boolean
  • true if the argument is an error indicating the absence of a local Git repository. Otherwise, false.

    Parameters

    • error: unknown

    Returns boolean

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

    Parameters

    • rawStatus: string

    Returns boolean