Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "git"

This file is part of the vscode-deploy-reloaded distribution. Copyright (c) Marcel Joachim Kloubert.

vscode-deploy-reloaded is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3.

vscode-deploy-reloaded is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Index

Variables

Const COMMITS_PER_PAGE

COMMITS_PER_PAGE: 25 = 25

Const IS_WINDOWS

IS_WINDOWS: boolean = process.platform === 'win32'

Const MergeDeep

MergeDeep: any = require('merge-deep')

Functions

findExecutable

  • findExecutable(exe: string, args: string[]): Promise<Executable>

findGitDarwin

findGitPath

findGitWin32

findSpecificGit

findSystemGitWin32

normalizeGitHash

  • normalizeGitHash<TDefault>(hash: string, defaultValue?: TDefault): string | TDefault
  • Normalizes a git hash.

    Type parameters

    • TDefault

    Parameters

    • hash: string

      The input value.

    • Default value defaultValue: TDefault = <any>null

    Returns string | TDefault

    The normalized hash or the default value.

parseVersion

  • parseVersion(raw: string): string
  • Parameters

    • raw: string

    Returns string

runCommand

  • runCommand(command: string, args: any[]): Promise<string>
  • Parameters

    • command: string
    • args: any[]

    Returns Promise<string>

runDownPath

  • runDownPath(exe: string): Promise<string>
  • Parameters

    • exe: string

    Returns Promise<string>

tryFindGitPath

  • Tries to find the path of the Git executable.

    Parameters

    • Optional path: string

    Returns Promise<GitExecutable | false>

    The promise with the executable or (false) if not found.

Generated using TypeDoc