Skip to content

@saflib/git


Function: listRefs()

listRefs(repoRoot): ReturnsError<GitRef[], GitCommandError>>

List local branch and tag refs via git for-each-ref. Does not include remote-tracking refs.

Parameters

ParameterType
repoRootstring

Returns

ReturnsError<GitRef[], GitCommandError>