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