functions/git
Functions
isGitRepository()
function isGitRepository(gitRepositoryDirectoryPath): boolean
Helper function to determine whether the given path is inside of a Git repository.
Parameters
Parameter | Type |
---|---|
gitRepositoryDirectoryPath | string |
Returns
boolean
Defined in
isGitRepositoryClean()
function isGitRepositoryClean(gitRepositoryDirectoryPath): boolean
Helper function to determine whether the given Git repository is "clean", meaning has no unchanged files from the head.
Parameters
Parameter | Type |
---|---|
gitRepositoryDirectoryPath | string |
Returns
boolean
Defined in
isGitRepositoryLatestCommit()
function isGitRepositoryLatestCommit(gitRepositoryDirectoryPath): boolean
Helper function to determine whether the given Git repository is up to date with the remote.
Parameters
Parameter | Type |
---|---|
gitRepositoryDirectoryPath | string |
Returns
boolean