Function: currentBranch()
currentBranch(
repoRoot):ReturnsError<null|string,GitCommandError>>
Short name of the branch HEAD points at (e.g. main), or null when detached.
Parameters
| Parameter | Type |
|---|---|
repoRoot | string |
Returns
ReturnsError<null | string, GitCommandError>