Skip to main content

functions/git

Functions

isGitRepository()

function isGitRepository(gitRepositoryDirectoryPath): boolean

Helper function to determine whether the given path is inside of a Git repository.

Parameters

ParameterType
gitRepositoryDirectoryPathstring

Returns

boolean

Defined in

functions/git.ts:4


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

ParameterType
gitRepositoryDirectoryPathstring

Returns

boolean

Defined in

functions/git.ts:14


isGitRepositoryLatestCommit()

function isGitRepositoryLatestCommit(gitRepositoryDirectoryPath): boolean

Helper function to determine whether the given Git repository is up to date with the remote.

Parameters

ParameterType
gitRepositoryDirectoryPathstring

Returns

boolean

Defined in

functions/git.ts:23