This module provides promise based shortcuts to git commands

Source:

Methods

(inner) checkout(identifier) → {Q.Promise}

Parameters:
Name Type Description
identifier string

ideally a SHA

Source:
Returns:
Type
Q.Promise

(inner) checkoutIdentifierFromDir(identifier, dir, repoMaskedopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
identifier string
dir string
repoMasked string <optional>
Source:
Returns:
Type
Q.Promise

(inner) clone(repo) → {Q.Promise}

Parameters:
Name Type Description
repo string
Source:
Returns:
Type
Q.Promise

(inner) cloneRepoInDir(repo, dir, repoMaskedopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
repo string
dir string
repoMasked string <optional>
Source:
Returns:
Type
Q.Promise

(inner) create(repo, identifieropt) → {Q.Promise.<{{id: string, path: string}}>}

Parameters:
Name Type Attributes Description
repo string
identifier string <optional>

(master)

Source:
Returns:
Type
Q.Promise.<{{id: string, path: string}}>

(inner) destroy(repoId)

Parameters:
Name Type Description
repoId string
Source:

(inner) getShortRepoName(repo) → {string}

Strips a git URL into a short name (no .git or http://...)

Parameters:
Name Type Description
repo string
Source:
Returns:
Type
string

(inner) shaHead() → {Q.Promise}

Source:
Returns:
Type
Q.Promise