Skip to content

GitHeadState

Where HEAD stood when a release started: the branch it is on (empty for a detached HEAD) and its commit.

Import:

import type { GitHeadState } from '@mnaoumov/typescript-dev-toolkit/version';

Signature:

export interface GitHeadState

Properties

PropertyTypeDescription
branchstringThe checked-out branch, or an empty string for a detached HEAD.
shastringThe commit HEAD points at.

Links to this page: