isHead property

bool isHead

Returns true if the current checked out commit is in a detached head state.

See https://git-scm.com/docs/git-checkout#_detached_head

Implementation

bool get isHead => branchName == 'HEAD';