Git functions
- Source:
Methods
(async, static) changedFiles() → {Promise.<Array.<string>>}
save changed files
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 |
Returns:
undefined
(async, static) gitCommit(msg)
git commit release
Parameters:
Name | Type | Description |
---|---|---|
msg |
string | commit message |
Returns:
undefined
(async, static) gitData() → {Promise.<GIT_DATA>}
Genereta git info
Returns:
- Type
- Promise.<GIT_DATA>
(async, static) gitPush()
git push to remote
Returns:
undefined
(async, static) gitPushTag()
git push tag to remote
Returns:
undefined
(async, static) gitRemoteDataUpdate(data) → {Promise.<DATA>}
update git remote data
Parameters:
Name | Type | Description |
---|---|---|
data |
DATA | data object |
Returns:
local data
- Type
- Promise.<DATA>
(async, static) gitTag(tag)
git tag
Parameters:
Name | Type | Description |
---|---|---|
tag |
string | tag |
Returns:
undefined
(async, static) isCommits() → {Promise.<boolean>}
Check is Git commits
Returns:
- Type
- Promise.<boolean>
(async, static) isRepo() → {Promise.<boolean>}
Check is Git Repo
Returns:
- Type
- Promise.<boolean>
(async, static) isRoot() → {Promise.<boolean>}
Check is Git root
Returns:
- Type
- Promise.<boolean>
(async, static) isTagInCurrentCommit() → {Promise.<boolean>}
Check is Git tag in current commit
Returns:
- Type
- Promise.<boolean>
(async, static) saveGitlog(data)
parse and save git log
Parameters:
Name | Type | Description |
---|---|---|
data |
DATA | data object |
Returns:
undefined
(async, static) stagedFiles() → {Promise.<Array.<string>>}
save staged files
Returns:
staged files array or false
- Type
- Promise.<Array.<string>>