Namespace: GIT

GIT

Git functions

Source:

Methods

(async, static) changedFiles() → {Promise.<Array.<string>>}

save changed files

Source:
Returns:

staged files array or false

Type
Promise.<Array.<string>>

(async, static) gitAdd(files)

git add files

Parameters:
Name Type Description
files Array.<string>

files to git add

Source:
Returns:

undefined

(async, static) gitCommit(msg)

git commit release

Parameters:
Name Type Description
msg string

commit message

Source:
Returns:

undefined

(async, static) gitData() → {Promise.<GIT_DATA>}

Genereta git info

Source:
Returns:
Type
Promise.<GIT_DATA>

(async, static) gitPush()

git push to remote

Source:
Returns:

undefined

(async, static) gitPushTag()

git push tag to remote

Source:
Returns:

undefined

(async, static) gitRemoteDataUpdate(data) → {Promise.<DATA>}

update git remote data

Parameters:
Name Type Description
data DATA

data object

Source:
Returns:

local data

Type
Promise.<DATA>

(async, static) gitTag(tag)

git tag

Parameters:
Name Type Description
tag string

tag

Source:
Returns:

undefined

(async, static) isCommits() → {Promise.<boolean>}

Check is Git commits

Source:
Returns:
Type
Promise.<boolean>

(async, static) isRepo() → {Promise.<boolean>}

Check is Git Repo

Source:
Returns:
Type
Promise.<boolean>

(async, static) isRoot() → {Promise.<boolean>}

Check is Git root

Source:
Returns:
Type
Promise.<boolean>

(async, static) isTagInCurrentCommit() → {Promise.<boolean>}

Check is Git tag in current commit

Source:
Returns:
Type
Promise.<boolean>

(async, static) saveGitlog(data)

parse and save git log

Parameters:
Name Type Description
data DATA

data object

Source:
Returns:

undefined

(async, static) stagedFiles() → {Promise.<Array.<string>>}

save staged files

Source:
Returns:

staged files array or false

Type
Promise.<Array.<string>>

Table of contents